Skip to content

Instantly share code, notes, and snippets.

@unional
Created February 4, 2016 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unional/acf756ad85a27794c6f4 to your computer and use it in GitHub Desktop.
Save unional/acf756ad85a27794c6f4 to your computer and use it in GitHub Desktop.
typings.install() API proposal
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