mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
fix(53289): TypeScript cannot auto-complete keyword typeof (#53325)
This commit is contained in:
parent
c5b539dcd5
commit
01a7a3e146
@ -1100,6 +1100,7 @@ export namespace Completion {
|
||||
"string",
|
||||
"symbol",
|
||||
"true",
|
||||
"typeof",
|
||||
"undefined",
|
||||
"unique",
|
||||
"unknown",
|
||||
|
||||
@ -2318,6 +2318,7 @@ export const typeKeywords: readonly SyntaxKind[] = [
|
||||
SyntaxKind.ReadonlyKeyword,
|
||||
SyntaxKind.StringKeyword,
|
||||
SyntaxKind.SymbolKeyword,
|
||||
SyntaxKind.TypeOfKeyword,
|
||||
SyntaxKind.TrueKeyword,
|
||||
SyntaxKind.VoidKeyword,
|
||||
SyntaxKind.UndefinedKeyword,
|
||||
|
||||
8
tests/cases/fourslash/typeOfKeywordCompletion.ts
Normal file
8
tests/cases/fourslash/typeOfKeywordCompletion.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////export type A = typ/**/
|
||||
|
||||
verify.completions({
|
||||
marker: "",
|
||||
includes: [{ name: "typeof", sortText: completion.SortText.GlobalsOrKeywords }]
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user