Installation
npm install --save @types/jquery-slugify
Summary
This package contains type definitions for jquery-slugify (https://github.com/madflow/jquery-slugify).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-slugify.
index.d.ts
/// <reference types="jquery" />
export type Options = Partial<{
preSlug: (source: string) => string;
postSlug: (source: string) => string;
slugFunc: (input: string, options: Options) => string;
separator: string;
lang: string | boolean;
symbols: boolean;
maintainCase: boolean;
titleCase: string[] | boolean;
truncate: number;
uric: boolean;
uricNoSlash: boolean;
mark: boolean;
custom: string[];
}>;
declare global {
interface JQuery {
slugify(source: string, options?: Options): JQuery;
}
interface JQueryStatic {
slugify(source: string, options?: Options): string;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0337 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Anderson Friaça.