Aller au contenu

filter

Ce contenu n’est pas encore disponible dans votre langue.

Interfaces

Filter<T, K>

Type Parameters

T

K extends keyof T = keyof T

Properties

active?
optional active: boolean;
Defined in

tmp/commons/src/lib/utils/filter.ts:9

key
key: K;
Defined in

tmp/commons/src/lib/utils/filter.ts:7

value
value: unknown;
Defined in

tmp/commons/src/lib/utils/filter.ts:8

Type Aliases

FilterDefinition<T>

type FilterDefinition<T>: object;

Type Parameters

T

Type declaration

key
key: keyof T;
type?
optional type: HTMLInputAttributes["type"];

Defined in

tmp/commons/src/lib/utils/filter.ts:12

Functions

filterItems()

function filterItems<T>(__namedParameters): T[]

Type Parameters

T

Parameters

__namedParameters = {}

__namedParameters.filters?: Iterable<Filter<T, keyof T>> = []

__namedParameters.items?: Iterable<T> = []

Returns

T[]

Defined in

tmp/commons/src/lib/utils/filter.ts:29


getActiveFilters()

function getActiveFilters<T>(filters?): Map<keyof T, Set<unknown>>

Type Parameters

T

Parameters

filters?: Iterable<Filter<T, keyof T>>

Returns

Map<keyof T, Set<unknown>>

Defined in

tmp/commons/src/lib/utils/filter.ts:17


getQueriedItems()

function getQueriedItems<T>(__namedParameters): T[]

Type Parameters

T

Parameters

__namedParameters

__namedParameters.items?: Iterable<T> = []

__namedParameters.queriedKeys?: Iterable<StringKeys<T> | StringArrayKeys<T>> = []

__namedParameters.query?: string

Returns

T[]

Defined in

tmp/commons/src/lib/utils/filter.ts:58