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;