Created
February 4, 2016 01:33
-
-
Save unional/acf756ad85a27794c6f4 to your computer and use it in GitHub Desktop.
typings.install() API proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface InstallOptions { | |
cwd: string; | |
/** | |
* If not specified, will benerate both "browser.d.ts" and "main.d.ts" | |
**/ | |
env?: "browser" | "main" | string[]; | |
production: boolean; // Q: Not sure if this should be part of public API | |
} | |
export interface Typings { | |
install(options: InstallOptions): Promise<{ tree: DependencyTree }>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment