25 lines
408 B
TypeScript
25 lines
408 B
TypeScript
|
declare module slugify {
|
||
|
type ExtendArgs = {
|
||
|
[key: string]: any;
|
||
|
}
|
||
|
|
||
|
export function extend (args: ExtendArgs): void;
|
||
|
}
|
||
|
|
||
|
declare function slugify(
|
||
|
string: string,
|
||
|
options?:
|
||
|
| {
|
||
|
replacement?: string;
|
||
|
remove?: RegExp;
|
||
|
lower?: boolean;
|
||
|
strict?: boolean;
|
||
|
locale?: string;
|
||
|
trim?: boolean;
|
||
|
}
|
||
|
| string,
|
||
|
|
||
|
): string;
|
||
|
|
||
|
export default slugify;
|