keyof演算子を使うと、型のプロパティからリテラル型の値を取り出した型を宣言できる
type Human = {
name: string
age: number
}
type Humankeys…
Source link
keyof演算子を使うと、型のプロパティからリテラル型の値を取り出した型を宣言できる
type Human = {
name: string
age: number
}
type Humankeys…
Source link