UNPKG

adba

Version:
10 lines (9 loc) 418 B
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;