musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Need ability to specify alternate lib.d.ts file #71

Closed iccir closed 9 years ago

iccir commented 9 years ago

Right now, the type checker uses TypeScript's lib.d.ts file. This is fine if we are targeting a web browser, but includes too many definitions for barer environments like an iOS JSContext.

Sadly, there isn't a lot of documentation for the other libraries distributed with TypeScript.

We want lib.core.d.ts for our JSContext target. For now, add an --typescript-lib option which allows us to specify this.

In the future, this option should be the same when/if there is a similar option on tsc.