mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import abbrev = require('abbrev');
|
|
|
|
let abbrs: { [abbreviation: string]: string; };
|
|
abbrs = abbrev();
|
|
abbrs = abbrev('foo', 'fool', 'folding', 'flop');
|
|
abbrs = abbrev(['foo', 'fool', 'folding', 'flop']);
|
|
|
|
abbrev.monkeyPatch();
|
|
|
|
abbrs = [].abbrev();
|
|
const roArr: ReadonlyArray<string> = [];
|
|
abbrs = roArr.abbrev();
|
|
abbrs = ({}).abbrev();
|