mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
740 B
TypeScript
28 lines
740 B
TypeScript
// Type definitions for abbrev 1.1
|
|
// Project: https://github.com/isaacs/abbrev-js#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = abbrev;
|
|
|
|
declare function abbrev(words: string[]): {[abbreviation: string]: string};
|
|
declare function abbrev(...words: string[]): {[abbreviation: string]: string};
|
|
|
|
declare namespace abbrev {
|
|
function monkeyPatch(): void;
|
|
}
|
|
|
|
declare global {
|
|
interface Array<T> {
|
|
abbrev(): {[abbreviation: string]: string};
|
|
}
|
|
|
|
interface ReadonlyArray<T> {
|
|
abbrev(): {[abbreviation: string]: string};
|
|
}
|
|
|
|
interface Object {
|
|
abbrev(): {[abbreviation: string]: string};
|
|
}
|
|
}
|