Skip to content

Commit

Permalink
move react-server-dom-webpack.d.ts to types directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Dec 11, 2024
1 parent de85fb4 commit c676342
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module 'react-server-dom-webpack/client' {
// eslint-disable-next-line import/prefer-default-export
export const createFromFetch: (promise: Promise<Response>) => Promise<unknown>;

export const createFromReadableStream: (stream: ReadableStream) => Promise<unknown>;
}
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"outDir": "node_package/lib",
"strict": true,
"incremental": true,
"target": "es5"
"target": "es5",
"typeRoots": ["./node_modules/@types", "./node_package/types"]
},
"include": ["node_package/src/**/*"]
"include": [
"node_package/src/**/*",
"node_package/types/**/*"
]
}

0 comments on commit c676342

Please sign in to comment.