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
Full Changelog: v5.1.6...v5.2.0