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:
durad 2017-01-22 21:10:12 -08:00 committed by Mohamed Hegazy
parent 0e3020531c
commit 0b89ca3e31
2 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,8 @@ interface LoremIpsumOptions {
suffix?: string;
}
declare namespace loremIpsum {}
/**
* Generate a passage of lorem ipsum text.
*/

View File

@ -1,4 +1,4 @@
import loremIpsum = require('lorem-ipsum');
import * as loremIpsum from 'lorem-ipsum';
let result: string;
result = loremIpsum();