Skip to content

Module: utilities/filtering

Functions

createTester

createTester<TContext, Types>(rules, filter_types, inverted?, or?, rebuild?): (ctx: TContext) => boolean

Type parameters

NameType
TContextTContext
Typesextends FilterTypeMap<TContext>

Parameters

NameTypeDefault value
rulesany[]undefined
filter_typesTypesundefined
invertedbooleanfalse
orbooleanfalse
rebuild?() => voidundefined

Returns

fn

▸ (ctx): boolean

Parameters
NameType
ctxTContext
Returns

boolean

Defined in

src/utilities/filtering.ts:18