TypeScript のアレコレはすぐに忘れる。
const a = ["a", "b", "c"] as const; // readonly ["a", "b", "c"] type A = typeof a[number]; // "a" | "b" | "c" type A_0 = typeof a[0]; // "a" const b = ["a", "b", "c"]; // string[] type B = typeof b[number]; // string
今日のコミット
- rust-atcoder 1 commit