Skip to content

_fnOpt

_fnOpt<T>(name, fn): (arg) => boolean

Defined in: src/backends/backend.ts:120

Internal

Use a function as the type of an option, but don’t treat it as a class.

Optionally sets the name of a function, useful for error messages.

T

string | null | undefined

(arg) => boolean

(arg) => boolean