CapitalizeKeys<T>: Capitalize<keyof T & string>

TypeScript 類型,替換成大寫開頭的 T 的所有屬性鍵

Type Parameters

  • T extends object

    類型

Example

type CamelCase = { fooFoo: number, bazBaz: { barBar: number } };
type PascalKeys = CapitalizeKeys<CamelCase> // => "FooFoo" | "BazBaz";

Generated using TypeDoc