File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function getTsxGrammar() {
97
97
98
98
function getTsGrammar ( getVariables : ( tsGrammarVariables : MapLike < string > ) => MapLike < string > ) {
99
99
const tsGrammarBeforeTransformation = readYaml ( file ( Language . TypeScript , Extension . YamlTmLanguage ) ) as TmGrammar ;
100
- return updateGrammarVariables ( tsGrammarBeforeTransformation , getVariables ( tsGrammarBeforeTransformation . variables ) ) ;
100
+ return updateGrammarVariables ( tsGrammarBeforeTransformation , getVariables ( tsGrammarBeforeTransformation . variables as MapLike < string > ) ) ;
101
101
}
102
102
103
103
function replacePatternVariables ( pattern : string , variableReplacers : VariableReplacer [ ] ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ declare interface TmGrammar {
38
38
scopeName : string ;
39
39
fileTypes : string [ ] ;
40
40
uuid : string ;
41
- variables : MapLike < string > ;
41
+ variables ? : MapLike < string > ;
42
42
patterns ?: AnyTmGrammarRule [ ] ;
43
43
repository : MapLike < TmGrammarRepositaryRule > ;
44
44
}
You can’t perform that action at this time.
0 commit comments