import type {CamelCase, CamelCaseOptions, _DefaultCamelCaseOptions} from './camel-case.d.ts'; import type {ApplyDefaultOptions} from './internal/index.d.ts'; /** Convert a string literal to pascal-case. @example ``` import type {PascalCase} from 'type-fest'; // Simple const someVariable: PascalCase<'foo-bar'> = 'FooBar'; const preserveConsecutiveUppercase: PascalCase<'foo-BAR-baz', {preserveConsecutiveUppercase: true}> = 'FooBARBaz'; // Advanced type PascalCasedProperties = { [K in keyof T as PascalCase]: T[K] }; interface RawOptions { 'dry-run': boolean; 'full_family_name': string; foo: number; BAR: string; QUZ_QUX: number; 'OTHER-FIELD': boolean; }; const dbResult: PascalCasedProperties = { DryRun: true, FullFamilyName: 'bar.js', Foo: 123, Bar: 'foo', QuzQux: 6, OtherField: false, }; ``` @category Change case @category Template literal */ export type PascalCase = _PascalCase>; type _PascalCase> = CamelCase extends string ? Capitalize> : CamelCase; export {};