From 6ba6862696043ca0faedf37bb4f88b3343a31f69 Mon Sep 17 00:00:00 2001 From: kotarella1110 Date: Wed, 15 Nov 2023 19:11:27 +0900 Subject: [PATCH] fix: fix renderedHtml type for react_component_hash --- node_package/src/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_package/src/types/index.ts b/node_package/src/types/index.ts index 49c4891e2..312157821 100644 --- a/node_package/src/types/index.ts +++ b/node_package/src/types/index.ts @@ -33,7 +33,7 @@ type AuthenticityHeaders = {[id: string]: string} & {'X-CSRF-Token': string | nu type StoreGenerator = (props: Record, railsContext: RailsContext) => Store interface ServerRenderResult { - renderedHtml?: string; + renderedHtml?: string | { componentHtml: string; [key: string]: string }; redirectLocation?: {pathname: string; search: string}; routeError?: Error; error?: Error;