adba
Version:
Any DataBase to API
10 lines (9 loc) • 418 B
TypeScript
import { Model } from "objection";
export declare function getModelByTableName(tableName: string, models: Record<string, typeof Model>): typeof Model | undefined;
/**
* Converts a string into PascalCase, suitable for class names.
* Handles strings in kebab-case or snake_case.
* @param str - The input string.
* @returns The converted PascalCase string.
*/
export declare function className(str: string): string;