File tree 2 files changed +20
-0
lines changed
packages/graphql-hooks-ssr
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { ElementType } from 'react'
2
+
3
+ export function getInitialState ( options : Options ) : object
4
+
5
+ interface Options {
6
+ App : ElementType
7
+ client : Client
8
+ render ?( element : ElementType ) : string
9
+ }
10
+
11
+ interface Client {
12
+ cache : Cache
13
+ ssrPromises ?: Promise < any > [ ]
14
+ }
15
+
16
+ interface Cache {
17
+ getInitialState ( ) : object
18
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.7" ,
4
4
"description" : " Server side rendering utils for graphql-hooks" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " echo \" Error: no test specified\" && exit 0" ,
8
9
"prepublishOnly" : " cp ../../LICENSE ."
23
24
"react-dom" : " ^16.8.1"
24
25
},
25
26
"devDependencies" : {
27
+ "@types/react" : " 16.8.8" ,
26
28
"react" : " 16.8.4" ,
27
29
"react-dom" : " 16.8.4"
28
30
},
You can’t perform that action at this time.
0 commit comments