Newts Parading Majestically

    @types/speakingurl
    TypeScript icon, indicating that this package has built-in type declarations

    13.0.3 • Public • Published

    Installation

    npm install --save @types/speakingurl

    Summary

    This package contains type definitions for speakingurl (http://pid.github.io/speakingurl/).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/speakingurl.

    index.d.ts

    // Type definitions for speakingurl 13.0
    // Project: http://pid.github.io/speakingurl/
    // Definitions by: Zlatko Andonovski <https://github.com/Goldsmith42>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    interface Dictionary<T> {
        [x: string]: T;
    }
    
    interface SpeakingURLOptions {
        separator?: string | undefined;
        lang?: string|boolean | undefined;
        symbols?: boolean | undefined;
        maintainCase?: boolean | undefined;
        titleCase?: string[]|boolean | undefined;
        truncate?: number | undefined;
        uric?: boolean | undefined;
        uricNoSlash?: boolean | undefined;
        mark?: boolean | undefined;
        custom?: string[]|Dictionary<string> | undefined;
    }
    
    declare function getSlug(input: string, options?: SpeakingURLOptions|string): string;
    
    declare namespace getSlug {
        function createSlug(options: SpeakingURLOptions): (input: string) => string;
    }
    
    export = getSlug;

    Additional Details

    • Last updated: Tue, 06 Jul 2021 16:35:09 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Zlatko Andonovski.

    Keywords

    none

    Install

    npm i @types/speakingurl

    DownloadsWeekly Downloads

    18,298

    Version

    13.0.3

    License

    MIT

    Unpacked Size

    4.42 kB

    Total Files

    4

    Last publish

    Collaborators

    • types