fix: generate type definition with nullable types (#8924)

This results in `undefined` and `null` being added explicitly in places which is crucial in some situations
pull/8926/head
Lyu, Wei-Da 1 year ago committed by GitHub
parent bb5d3948ed
commit 0a2732a2b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: generate type definition with nullable types

@ -16,6 +16,9 @@ fs.writeFileSync('./types/compiler/interfaces.d.ts', `import '../index.js';`);
await createBundle({
output: 'types/index.d.ts',
compilerOptions: {
strict: true
},
modules: {
svelte: 'src/runtime/public.d.ts',
'svelte/compiler': 'src/compiler/public.d.ts',

Loading…
Cancel
Save