We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117b821 commit a8d9ddeCopy full SHA for a8d9dde
index.d.ts
@@ -0,0 +1,10 @@
1
+declare module 'react-ssr-prepass' {
2
+ type Visitor = (
3
+ element: React.ElementType<any>,
4
+ instance?: React.Component<any, any>
5
+ ) => void | Promise<any>
6
+
7
+ function ssrPrepass(node: React.ReactNode, visitor?: Visitor): Promise<void>
8
9
+ export = ssrPrepass
10
+}
package.json
@@ -12,8 +12,10 @@
12
"files": [
13
"index.js",
14
"index.js.flow",
15
- "dist"
+ "dist",
16
+ "index.d.ts"
17
],
18
+ "types": "index.d.ts",
19
"scripts": {
20
"prepublishOnly": "run-s build",
21
"build": "rollup -c rollup.config.js",
0 commit comments