mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
930 B
TypeScript
34 lines
930 B
TypeScript
// Type definitions for jquery-slugify 1.2
|
|
// Project: https://github.com/madflow/jquery-slugify
|
|
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <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;
|
|
}
|
|
}
|