mirror of
https://github.com/sindresorhus/type-fest.git
synced 2026-02-01 15:59:43 +00:00
7 lines
230 B
TypeScript
7 lines
230 B
TypeScript
// Ensure that TypeScript 4.1 types are available.
|
|
import {expectType} from 'tsd';
|
|
import type {CamelCase} from '../index';
|
|
|
|
const camelFromPascal: CamelCase<'FooBar'> = 'fooBar';
|
|
expectType<CamelCase<'FooBar'>>(camelFromPascal);
|