Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contextual keywords to the reserved words list #500

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# continue to prefix the word with "_" until it's no longer considered
# reserved.
#
# See: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#221-reserved-words
# See: https://github.com/Microsoft/TypeScript/blob/main/src/compiler/types.ts#L113

# Reserved and cannot be used as identifiers
break
Expand Down Expand Up @@ -66,7 +66,7 @@ void
while
with

# Not valid for identifiers
# Not valid for identifiers (strict mode reserved words)
implements
interface
let
Expand All @@ -77,6 +77,35 @@ public
static
yield

# contextual keywords
abstract
as
asserts
assert
any
async
await
constructor
declare
get
infer
intrinsic
is
keyof
module
namespace
never
readonly
require
type
undefined
unique
unknown
from
global
override
of

# Not valid for user defined type names.
any
boolean
Expand Down