Skip to content

Commit

Permalink
fix(generate-types): run tsc with --skipLibCheck (#24661)
Browse files Browse the repository at this point in the history
Avoids the following error:

```
error TS2451: Cannot redeclare block-scoped variable 'TrustedHTML'.
```
  • Loading branch information
caugner authored Oct 8, 2024
1 parent 378782f commit a58c327
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ const compile = async (
generateCompatDataTypes(),
].join('\n\n');
await fs.writeFile(destination, ts);
execSync('tsc ../types/types.d.ts', { cwd: dirname, stdio: 'inherit' });
execSync('tsc --skipLibCheck ../types/types.d.ts', {
cwd: dirname,
stdio: 'inherit',
});
};

if (esMain(import.meta)) {
Expand Down

0 comments on commit a58c327

Please sign in to comment.