Skip to content

Commit

Permalink
[core] Remove lib dom from create-toolpad-app (#3796)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Jul 18, 2024
1 parent 7312847 commit 3b0e112
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions packages/create-toolpad-app/src/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ async function downloadTar(url: string) {
invariant(response.body, 'Missing response body');

let current = 0;
// @ts-expect-error - @types/node ReadableStream clashing with lib.dom ReadableStream
// https://github.com/microsoft/TypeScript/issues/29867
const readable = Readable.fromWeb(response.body);
readable.on('data', (chunk) => {
process.stdout.write(
Expand Down
5 changes: 1 addition & 4 deletions packages/create-toolpad-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"target": "es2020",
"module": "esnext",
"moduleResolution": "bundler",
"lib": [
"esnext",
"dom" // For the global fetch, remove when https://github.com/DefinitelyTyped/DefinitelyTyped/issues/60924 is resolved
],
"lib": ["esnext"],
"isolatedModules": true,
"strict": true,
"resolveJsonModule": true,
Expand Down

0 comments on commit 3b0e112

Please sign in to comment.