Skip to content

Type Aliases

Validator()<T>

type Validator<T> = (x, file) => asserts x is T

Defined 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): string

Defined in: index.ts:159

Parameters

which

WhichConfig = 'project'

cwd

string = ...

home

string = ...

Returns

string


load()

function load<T>(field, validator, which): undefined | T

Defined in: index.ts:146

Type Parameters

T

Parameters

field

string

validator

Validator<T>

which

WhichConfig = 'project'

Returns

undefined | T


reload()

function reload(field, which): unknown

Defined in: index.ts:132

Parameters

field

string

which

WhichConfig = 'project'

Returns

unknown


save()

function save(field, value, which): void

Defined in: index.ts:200

Parameters

field

string

value

unknown

which

WhichConfig = 'project'

Returns

void


unload()

function unload(which): void

Defined in: index.ts:124

Parameters

which

WhichConfig = 'project'

Returns

void