Completions for asserts and declare (#36355)

* Add completions for `asserts`

* Add declare assertions.
This commit is contained in:
Nathan Shively-Sanders
2020-01-22 10:43:33 -08:00
committed by GitHub
parent 5e59eece34
commit c8e2f58ec5
7 changed files with 28 additions and 4 deletions

View File

@@ -2525,6 +2525,7 @@ namespace ts.Completions {
case SyntaxKind.GetKeyword:
case SyntaxKind.SetKeyword:
case SyntaxKind.AsyncKeyword:
case SyntaxKind.DeclareKeyword:
return true;
default:
return isClassMemberModifier(kind);

View File

@@ -1283,6 +1283,7 @@ namespace ts {
export const typeKeywords: readonly SyntaxKind[] = [
SyntaxKind.AnyKeyword,
SyntaxKind.AssertsKeyword,
SyntaxKind.BigIntKeyword,
SyntaxKind.BooleanKeyword,
SyntaxKind.FalseKeyword,