diff --git a/package.json b/package.json index 626c559a..07c27b5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-cool-starter", - "version": "4.3.3", + "version": "4.3.4", "private": true, "description": "A starter boilerplate for a universal web application with the best development experience and best practices.", "license": "MIT", diff --git a/src/server/renderHtml.ts b/src/server/renderHtml.ts index 13484434..a83934d6 100755 --- a/src/server/renderHtml.ts +++ b/src/server/renderHtml.ts @@ -1,11 +1,13 @@ +import { ChunkExtractor } from "@loadable/server"; +import { HelmetData } from "react-helmet"; import serialize from "serialize-javascript"; import { minify } from "html-minifier"; export default ( - head: Record, - extractor: Record, + head: HelmetData, + extractor: ChunkExtractor, htmlContent: string, - initialState: Record + initialState: typeof window.__INITIAL_STATE__ ): any => { const html = ` diff --git a/src/store/index.ts b/src/store/index.ts index 46abbc24..b972d04e 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -6,7 +6,7 @@ import { routerMiddleware } from "connected-react-router"; import createRootReducer from "./rootReducer"; interface Arg { - initialState?: Record; + initialState?: typeof window.__INITIAL_STATE__; url?: string; }