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:
stonio
2017-03-15 16:17:10 +01:00
committed by GitHub
parent 1f6914b860
commit 32a3eb210b

View File

@@ -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;