Skip to content

Instantly share code, notes, and snippets.

@omochi
Created October 9, 2014 02:17
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 omochi/fff38e3585d749fb8407 to your computer and use it in GitHub Desktop.
Save omochi/fff38e3585d749fb8407 to your computer and use it in GitHub Desktop.
class FsAsync {
static readFile: (filename: string, encoding: string) => Promise<string>;
private static _init() {
FsAsync.readFile = <any>Promise.promisify(fs.readFile);
}
private static __init = FsAsync._init();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment