Skip to content

Commit

Permalink
Added TypeScript binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryDungan committed Jan 11, 2018
1 parent 9bc45ae commit b5a8edc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions confucious.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** Declaration file generated by dts-gen */

export function clear(key: string): void;

export function clearGlobal(key: string): void;

export function get<T>(key: string): T;

export function getValueStackCopy(): Object;

export function pop(): void;

export function push(values: Object): void;

export function pushArgv(): void;

export function pushEnv(): void;

export function pushJsonFile(filePath: string): void;

export function set<T>(key: string, value: T): void;

export function setGlobal<T>(key: string, value: T): void;

export function toObject(): Object;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.11",
"description": "App configuration management. Kind of like nconf, but easier to use, predicable and more flexible.",
"main": "index.js",
"types": "confucious.d.ts",
"scripts": {
"test": "mocha"
},
Expand All @@ -25,5 +26,5 @@
"chai": "^3.3.0",
"extend": "^3.0.0",
"yargs": "^3.26.0"
}
}
}

0 comments on commit b5a8edc

Please sign in to comment.