as const

Term side of the Card
Topic: Assertions
Unit title: as const
Categories: Assertion, Keyword
Explanation side of the Card

Explanation: The assertion that converts a value into its literal type. Useful for ensuring a value remains constant and doesn't widen into a more general type.

Edit on GitHubContributions in our content repository are 🤗 welcome from everyone.Link leads to the Contributions guidelines on GitHubLink leads to the content repository on GitHub