mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 13:32:17 +08:00
Update index.d.ts - Interface SpeakingURLOptions
Rename interface `Options` to interface `SpeakingURLOptions` to avoid namespace conflict with other TypeScript definitions.
This commit is contained in:
10
speakingurl/index.d.ts
vendored
10
speakingurl/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for speakingurl 10.0
|
||||
// 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
|
||||
@@ -7,7 +7,7 @@ interface Dictionary<T> {
|
||||
[x: string]: T;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
interface SpeakingURLOptions {
|
||||
separator?: string;
|
||||
lang?: string|boolean;
|
||||
symbols?: boolean;
|
||||
@@ -20,10 +20,10 @@ interface Options {
|
||||
custom?: string[]|Dictionary<string>;
|
||||
}
|
||||
|
||||
declare function getSlug(input: string, options?: Options|string): string;
|
||||
declare function getSlug(input: string, options?: SpeakingURLOptions|string): string;
|
||||
|
||||
declare namespace getSlug {
|
||||
export function createSlug(options: Options): (input: string) => string;
|
||||
export function createSlug(options: SpeakingURLOptions): (input: string) => string;
|
||||
}
|
||||
|
||||
export = getSlug;
|
||||
export = getSlug;
|
||||
|
||||
Reference in New Issue
Block a user