npm.io
1.2.3 • Published 2 years ago

@types/jquery-slugify

Licence
MIT
Version
1.2.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.