Skip to content

Commit

Permalink
fix: add source of example
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Mar 7, 2023
1 parent 13c308f commit 04e690a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/is-literal.d.ts
Expand Up @@ -32,6 +32,7 @@ import type {IsStringLiteral} from 'type-fest';
type CapitalizedString<T extends string> = IsStringLiteral<T> extends true ? Capitalize<T> : string;
// https://github.com/yankeeinlondon/native-dash/blob/master/src/capitalize.ts
function capitalize<T extends Readonly<string>>(input: T): CapitalizedString<T> {
return (input.slice(0, 1).toUpperCase() + input.slice(1)) as CapitalizedString<T>;
}
Expand Down

0 comments on commit 04e690a

Please sign in to comment.