diff --git a/slugify.d.ts b/slugify.d.ts index e20f795..b74c5b7 100644 --- a/slugify.d.ts +++ b/slugify.d.ts @@ -1,24 +1,19 @@ -declare module slugify { - type ExtendArgs = { - [key: string]: any; - } +declare const slugify: { + ( + string: string, + options?: + | { + replacement?: string; + remove?: RegExp; + lower?: boolean; + strict?: boolean; + locale?: string; + trim?: boolean; + } + | string, - 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; + ): string; + extend: (args: Record) => void; +}; export default slugify;