Buy me a coffee
TypeScript
›
타입 가드
›
as const
as const
타입 가드
객체나 배열의 모든 값을 리터럴 타입으로 추론합니다.
문법
const obj = { ... } as const