TypeScript 類型,替換成大寫開頭的 T 的所有屬性鍵
T
類型
type CamelCase = { fooFoo: number, bazBaz: { barBar: number } };type PascalKeys = CapitalizeKeys<CamelCase> // => "FooFoo" | "BazBaz"; Copy
type CamelCase = { fooFoo: number, bazBaz: { barBar: number } };type PascalKeys = CapitalizeKeys<CamelCase> // => "FooFoo" | "BazBaz";
Generated using TypeDoc
TypeScript 類型,替換成大寫開頭的
T
的所有屬性鍵