1 import {CamelCase} from './camel-case';
4 Converts a string literal to pascal-case.
8 import {PascalCase} from 'type-fest';
12 const someVariable: PascalCase<'foo-bar'> = 'FooBar';
16 type PascalCaseProps<T> = {
17 [K in keyof T as PascalCase<K>]: T[K]
20 interface RawOptions {
22 'full_family_name': string;
26 const dbResult: CamelCasedProps<ModelProps> = {
28 FullFamilyName: 'bar.js',
34 export type PascalCase<Value> = CamelCase<Value> extends string
35 ? Capitalize<CamelCase<Value>>