Type Aliases
Validator()<T>
type Validator<T> = (x, file) => asserts x is TDefined in: index.ts:107
Type Parameters
• T
Parameters
x
unknown
file
string
Returns
asserts x is T
WhichConfig
type WhichConfig = 'user' | 'project'Defined in: index.ts:29
Functions
find()
function find(which, cwd, home): stringDefined in: index.ts:159
Parameters
which
WhichConfig = 'project'
cwd
string = ...
home
string = ...
Returns
string
load()
function load<T>(field, validator, which): undefined | TDefined in: index.ts:146
Type Parameters
• T
Parameters
field
string
validator
Validator<T>
which
WhichConfig = 'project'
Returns
undefined | T
reload()
function reload(field, which): unknownDefined in: index.ts:132
Parameters
field
string
which
WhichConfig = 'project'
Returns
unknown
save()
function save(field, value, which): voidDefined in: index.ts:200
Parameters
field
string
value
unknown
which
WhichConfig = 'project'
Returns
void
unload()
function unload(which): voidDefined in: index.ts:124
Parameters
which
WhichConfig = 'project'
Returns
void