boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
27 lines (26 loc) • 762 B
TypeScript
import { StringStyle } from './enums/StringStyle';
export interface GetUniqueOperationIdFromPath {
filePath: string;
stripValue: string;
tails?: string | string[];
cwd?: string;
removeMethod?: boolean;
style?: StringStyle;
segmentStyle?: StringStyle;
firstSegmentSplit?: '.' | '-' | '_';
allSegmentSplit?: '.' | '-' | '_';
prefixes?: string[];
replacements?: {
find: string;
replace: string;
}[];
}
declare class UniqueOperationIds {
getUniqueOperationIdFromPath(input: GetUniqueOperationIdFromPath): string;
/**
* Strings the path param curlies from a folder name
*/
removeCurlys(input: string): string;
}
declare const _default: UniqueOperationIds;
export default _default;