8 Matching Annotations
  1. Dec 2022
  2. Aug 2021
    1. I believe he wants to use the as const feature while still type checking that the structure matches an interface. A workaround I'd use for something like that would be interface ITest { a: number; b: string; } let foo = { a: 5, b: "Hello" } as const;
  3. Oct 2020