Skip to content

Commit

Permalink
feat: basic types
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Nov 15, 2019
1 parent 15a6055 commit 6e60b3b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/index.ts
Expand Up @@ -4,7 +4,22 @@ require('./nconf-truth');
var path = require('path');
var _ = require('lodash');

export function loadConfig(dir, options) {
export type Json =
| string
| number
| boolean
| null
| { [property: string]: Json }
| Json[];

export interface Options {
secretConfig?: string;
}

export function loadConfig(
dir?: string,
options?: Options,
): { [property: string]: Json } {
if (!dir) {
dir = '';
}
Expand Down

0 comments on commit 6e60b3b

Please sign in to comment.