github samchon/typia v5.2.0

latest releases: v6.12.0, v6.11.4, v6.11.3...
13 months ago

Added a new module notations to support naming convention converters.

This update is for future's nestia feature.

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>>;
}

What's Changed

  • New module notations, the naming convention converters by @samchon in #835

Full Changelog: v5.1.6...v5.2.0

Don't miss a new typia release

NewReleases is sending notifications on new releases.