File tree 2 files changed +6
-5
lines changed
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, {
55
55
includeAugmentation : false ,
56
56
} )
57
57
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
+ `
61
62
62
63
await 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(
51
51
caughtErrors : 'none' ,
52
52
ignoreRestSiblings : true ,
53
53
vars : 'all' ,
54
- varsIgnorePattern : '^\\$\\$Props$' ,
54
+ varsIgnorePattern : '^( \\$\\$Props$|\\$\\$Events$|\\$\\$Slots$) ' ,
55
55
} ,
56
56
] ,
57
57
@@ -83,7 +83,7 @@ export async function svelte(
83
83
args : 'after-used' ,
84
84
argsIgnorePattern : '^_' ,
85
85
vars : 'all' ,
86
- varsIgnorePattern : '^(_|\\$\\$Props$)' ,
86
+ varsIgnorePattern : '^(_|\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$ )' ,
87
87
} ,
88
88
] ,
89
89
You can’t perform that action at this time.
0 commit comments