Add type definitions for rcloader.

This commit is contained in:
Panu Horsmalahti
2015-12-25 14:19:42 +02:00
parent 1da639a106
commit 32a0136788
2 changed files with 27 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
/// <reference path="./rcloader.d.ts" />
import rcloader = require("rcloader");
const rcLoader = new rcloader.RcLoader(".configfilename", {
lookup: true
});
rcLoader.for("foo.json", (err, fileOpts) => {
// send the file along
});