@puq/names
Version:
The library provides a useful function to create all casing variants of a given string value such as title-case, pascal-case, snake-case and so more.
8 lines • 379 B
TypeScript
import type { DataModelName } from './data-model-name.js';
/**
* Extract the resource name from {@link className}, such as ProductController to Product, CategoryService to Category
* @param className string
* @returns string
*/
export declare function extractResourceName<T extends DataModelName>(className: T | string): T;
//# sourceMappingURL=extract-resource-name.d.ts.map