Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

refactor: use TS 4.5 const assertions #15

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Conversation

pastelmind
Copy link
Owner

TypeScript 4.5 supports const assertions in JSDoc comments (see related issue). This allows us to remove the _c() function, previously used as a workaround. This should make the lexer very slightly faster and won't affect any semantics.

TypeScript 4.5 supports const assertions in JSDoc comments. This allows
us to remove the `_c()` function, previously used as a workaround.
This should make the lexer very slightly faster and won't affect any
semantics.
@pastelmind pastelmind added the enhancement New feature or request label Feb 8, 2022
@pastelmind pastelmind self-assigned this Feb 8, 2022
@pastelmind pastelmind force-pushed the refactor-const-assertions branch from faf0d6c to fc63910 Compare February 8, 2022 14:15
@pastelmind pastelmind merged commit 4306ec0 into main Feb 8, 2022
@pastelmind pastelmind deleted the refactor-const-assertions branch February 8, 2022 14:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant