/* keyofを使用するとオブジェクトのプロパティ名をString Literal Union Typesで取得できる。 プロパティが数値の場合は、Numeric Literal Union Typesが取得される。 「型」に対して使用できる */ type SomeType = { foo: string; bar: string; baz: number; } const someKey: keyof SomeType; // someKey: 'foo' | 'bar' | 'baz' export type PersonalData = { name: string; age: number; }; export type SurveyData = { health: string; motivation: string; remarks: string; }; export t