mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
Changed definition of lorem-ipsum to allow ES6 style imports (#14166)
* Implemented match, isMath and find * Added all functions * Made options optional. * Added tslint.json and fixed lint errors * Fixed definition for mapping function * Fixed issue with strict nulls * Added definition for lorem-ipsum * Added namespace to lorem-ipsum to allow ES6 style imports
This commit is contained in:
2
lorem-ipsum/index.d.ts
vendored
2
lorem-ipsum/index.d.ts
vendored
@@ -55,6 +55,8 @@ interface LoremIpsumOptions {
|
||||
suffix?: string;
|
||||
}
|
||||
|
||||
declare namespace loremIpsum {}
|
||||
|
||||
/**
|
||||
* Generate a passage of lorem ipsum text.
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import loremIpsum = require('lorem-ipsum');
|
||||
import * as loremIpsum from 'lorem-ipsum';
|
||||
|
||||
let result: string;
|
||||
result = loremIpsum();
|
||||
|
||||
Reference in New Issue
Block a user