From 61e8f3881588b9f08e8e932bcafff74306894558 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 3 May 2022 16:23:12 +0200 Subject: [PATCH] Add UIFragmentRecord type --- packages/html/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/html/src/index.ts b/packages/html/src/index.ts index d490181..2fa3b62 100644 --- a/packages/html/src/index.ts +++ b/packages/html/src/index.ts @@ -6,6 +6,7 @@ import { QuasiValue as Q } from "@syndicate-lang/core"; import * as P from "./protocol"; export * from "./protocol"; +export type UIFragmentRecord = ReturnType; import { HtmlFragments } from "./html"; export * from "./html"; @@ -501,7 +502,7 @@ export class Anchor { return new Anchor({ fragmentId: this.fragmentId + '__' + extn }); } - html(selector: string, html: HtmlFragments | Array, orderBy: NodeOrderKey = ''): ReturnType { + html(selector: string, html: HtmlFragments | Array, orderBy: NodeOrderKey = ''): UIFragmentRecord { if (!Array.isArray(html)) { html = html.nodes(); }