mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00: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:
parent
0e3020531c
commit
0b89ca3e31
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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user