Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New module notations, the naming convention converters #835

Merged
merged 4 commits into from
Oct 7, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented Oct 7, 2023

Added a new module notations to support naming convention converters.

export namespace notations {
    export function camel<T>(input: T): CamelCase<T>;
    export function assertCamel<T>(input: unknown | T): CamelCase<T>;
    export function isCamel<T>(input: unknown | T): CamelCase<T> | null;
    export function validateCamel<T>(input: unknown | T): IValidation<CamelCase<T>>;

    export function pascal<T>(input: T): PascalCase<T>;
    export function assertPascal<T>(input: unknown | T): PascalCase<T>;
    export function isPascal<T>(input: unknown | T): PascalCase<T> | null;
    export function validatePascal<T>(input: unknown | T): IValidation<PascalCase<T>>;

    export function snake<T>(input: T): SnakeCase<T>;
    export function assertSnake<T>(input: unknown | T): SnakeCase<T>;
    export function isSnake<T>(input: unknown | T): SnakeCase<T> | null;
    export function validateSnake<T>(input: unknown | T): IValidation<SnakeCase<T>>;
}

@samchon samchon added the enhancement New feature or request label Oct 7, 2023
@samchon samchon self-assigned this Oct 7, 2023
@samchon samchon changed the base branch from master to features/ts5.2 October 7, 2023 20:50
@samchon samchon changed the base branch from features/ts5.2 to master October 7, 2023 20:57
@samchon samchon merged commit 8717d4c into master Oct 7, 2023
2 of 3 checks passed
@samchon samchon deleted the features/notations branch October 7, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant