boo1ean / casual

Fake data generator for javascript
3.03k stars 154 forks source link

Fix typescript declaration incorrect #72

Closed neviaumi closed 7 years ago

neviaumi commented 7 years ago

Issue #71

Also i have extract interface into namespace instead of module so that i can override/extend interface on added generator by define.

After this commit I can extend interface by below example : `

declare namespace Casual { interface Casual { boolean: boolean; define(type: string, cb: (...args: any[]) => any): void; } } `

boo1ean commented 7 years ago

Thanks for contribution and sorry for delay! casual@1.5.17