File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ function removeTsSuffix(files: string[]): string[] {
44
44
}
45
45
46
46
function escapeImport ( module : string ) : string {
47
- if ( module === 'name' || module === 'type' || module === 'switch' ) {
47
+ if ( [ 'name' , 'type' , 'switch' ] . includes ( module ) ) {
48
48
return `${ module } _` ;
49
49
} else {
50
50
return module ;
51
51
}
52
52
}
53
53
54
54
function escapeField ( module : string ) : string {
55
- if ( module === 'name' || module === 'type' || module === 'switch' ) {
55
+ if ( [ 'name' , 'type' , 'switch' ] . includes ( module ) ) {
56
56
return `${ module } : ${ module } _` ;
57
57
} else {
58
58
return module ;
@@ -180,7 +180,7 @@ function generateRecursiveModuleIndexes(
180
180
if ( lstatSync ( pathModule ) . isDirectory ( ) ) {
181
181
let moduleDefinition =
182
182
definition === 'any' ? 'any' : `${ definition } ['${ submodule } ']` ;
183
- let moduleFiles : string [ ] = undefined ;
183
+ let moduleFiles : string [ ] ;
184
184
185
185
// Overwrite types of src/locales/<locale>/<module>/index.ts for known DEFINITIONS
186
186
if ( depth === 1 ) {
You can’t perform that action at this time.
0 commit comments