diff --git a/.changeset/strong-rules-pretend.md b/.changeset/strong-rules-pretend.md new file mode 100644 index 000000000..9f8f14bf8 --- /dev/null +++ b/.changeset/strong-rules-pretend.md @@ -0,0 +1,5 @@ +--- +'sku': patch +--- + +Add async render types diff --git a/sku-types.d.ts b/sku-types.d.ts index b310b03d8..3b06d3519 100644 --- a/sku-types.d.ts +++ b/sku-types.d.ts @@ -18,13 +18,13 @@ interface RenderDocumentProps extends RenderAppProps { } export interface Render { - renderApp(p: RenderAppProps): App; + renderApp(p: RenderAppProps): Promise | App; provideClientContext?(p: { environment: string; site: string; app: App; - }): object; + }): Promise | object; - renderDocument(p: RenderDocumentProps): string; + renderDocument(p: RenderDocumentProps): Promise | string; }