type assertion

[1/1]

  1. Beyond the Basics: Advanced Type Assertions with "as const" in TypeScript
    In TypeScript, "as const" is a special type assertion syntax introduced in version 3.4. It's used to create literal types and make objects or arrays read-only