Skip to content

Commit

Permalink
Fix invalid example and reduce the conditions (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayzen committed Aug 30, 2021
1 parent 6de66eb commit 2783a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/camel-case.d.ts
Expand Up @@ -57,7 +57,7 @@ interface RawOptions {
'OTHER-FIELD': boolean;
}
const dbResult: CamelCasedProperties<ModelProps> = {
const dbResult: CamelCasedProperties<RawOptions> = {
dryRun: true,
fullFamilyName: 'bar.js',
foo: 123,
Expand All @@ -69,4 +69,4 @@ const dbResult: CamelCasedProperties<ModelProps> = {
@category Template Literals
*/
export type CamelCase<K> = K extends string ? K extends Uppercase<K> ? CamelCaseStringArray<Split<Lowercase<K>, WordSeparators>> : CamelCaseStringArray<Split<K, WordSeparators>> : K;
export type CamelCase<K> = K extends string ? CamelCaseStringArray<Split<K extends Uppercase<K> ? Lowercase<K> : K, WordSeparators>> : K;

0 comments on commit 2783a08

Please sign in to comment.