codeforlife 2.11.2 → 2.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/App.cjs.js +1 -1
- package/dist/server/App.cjs.js.map +1 -1
- package/dist/server/App.es.js +10 -9
- package/dist/server/App.es.js.map +1 -1
- package/dist/server/entry.cjs.js +32 -32
- package/dist/server/entry.cjs.js.map +1 -1
- package/dist/server/entry.d.ts +6 -4
- package/dist/server/entry.es.js +587 -582
- package/dist/server/entry.es.js.map +1 -1
- package/package.json +1 -1
package/dist/server/entry.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Options as CreateEmotionCacheOptions } from '@emotion/cache';
|
|
3
3
|
import { AppProps } from './App';
|
|
4
|
-
export type
|
|
4
|
+
export type EntryAppProps = Pick<AppProps, "emotionCache" | "children">;
|
|
5
|
+
export type EntryKwArgs = {
|
|
6
|
+
App: FC<EntryAppProps>;
|
|
5
7
|
routes: ReactNode;
|
|
6
8
|
createEmotionCacheOptions?: CreateEmotionCacheOptions;
|
|
7
9
|
};
|
|
8
|
-
export declare function server({ routes, createEmotionCacheOptions, ...appProps }: EntryKwArgs): {
|
|
10
|
+
export declare function server({ App, routes, createEmotionCacheOptions, ...appProps }: EntryKwArgs): {
|
|
9
11
|
render: (path: string) => {
|
|
10
12
|
html: string;
|
|
11
13
|
head: string;
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
|
-
export declare function client({ routes, createEmotionCacheOptions, ...appProps }: EntryKwArgs): void;
|
|
16
|
+
export declare function client({ App, routes, createEmotionCacheOptions, ...appProps }: EntryKwArgs): void;
|