Skip to content

Commit

Permalink
Fix the operand of a 'delete' operator must be optional error in type…
Browse files Browse the repository at this point in the history
…script 4.0 (#838)
  • Loading branch information
Zuckjet authored Nov 5, 2020
1 parent d6e677b commit 0355d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getTsxGrammar() {

function getTsGrammar(getVariables: (tsGrammarVariables: MapLike<string>) => MapLike<string>) {
const tsGrammarBeforeTransformation = readYaml(file(Language.TypeScript, Extension.YamlTmLanguage)) as TmGrammar;
return updateGrammarVariables(tsGrammarBeforeTransformation, getVariables(tsGrammarBeforeTransformation.variables));
return updateGrammarVariables(tsGrammarBeforeTransformation, getVariables(tsGrammarBeforeTransformation.variables as MapLike<string>));
}

function replacePatternVariables(pattern: string, variableReplacers: VariableReplacer[]) {
Expand Down
2 changes: 1 addition & 1 deletion build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare interface TmGrammar {
scopeName: string;
fileTypes: string[];
uuid: string;
variables: MapLike<string>;
variables?: MapLike<string>;
patterns?: AnyTmGrammarRule[];
repository: MapLike<TmGrammarRepositaryRule>;
}
Expand Down

0 comments on commit 0355d15

Please sign in to comment.