File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ let dts = await flatConfigsToRulesDTS(configs, {
5555 includeAugmentation : false ,
5656} )
5757
58- dts = `
59- type ConfigNames = ${ configNames . map ( i => `'${ i } '` ) . join ( ' | ' ) }
60- ${ dts } `
58+ dts += `
59+ // Names of all the configs
60+ export type ConfigNames = ${ configNames . map ( i => `'${ i } '` ) . join ( ' | ' ) }
61+ `
6162
6263await fs . writeFile ( 'src/types/typegen.d.ts' , dts )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export async function svelte(
5151 caughtErrors : 'none' ,
5252 ignoreRestSiblings : true ,
5353 vars : 'all' ,
54- varsIgnorePattern : '^\\$\\$Props$' ,
54+ varsIgnorePattern : '^( \\$\\$Props$|\\$\\$Events$|\\$\\$Slots$) ' ,
5555 } ,
5656 ] ,
5757
@@ -83,7 +83,7 @@ export async function svelte(
8383 args : 'after-used' ,
8484 argsIgnorePattern : '^_' ,
8585 vars : 'all' ,
86- varsIgnorePattern : '^(_|\\$\\$Props$)' ,
86+ varsIgnorePattern : '^(_|\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$ )' ,
8787 } ,
8888 ] ,
8989
You can’t perform that action at this time.
0 commit comments