API Documentation / @pinia/colada / _EntryFilter_NoKey
Interface: _EntryFilter_NoKey<TEntry>
Type Parameters
TEntry
TEntry
Properties
active?
ts
optional active: null | boolean;
If true
or false
, it will only return entries that match the active status. If set to null
or undefined
, it matches both.
Inherited from
ts
EntryFilter_Base.active
exact?
ts
optional exact: false;
If true
, it will only match the entry of the given key
, skipping any children entries. It also makes key
required.
Example
ts
{ key: ['a'], exact: true }
// will match ['a'] but not ['a', 'b'], while
{ key: ['a'] }
// will match both
Overrides
ts
EntryFilter_Base.exact
key?
ts
optional key: EntryKey;
A key to filter the entries.
Inherited from
ts
EntryFilter_Base.key
predicate()?
ts
optional predicate: (entry) => boolean;
Pass a predicate to filter the entries. This will be executed for each entry matching the other filters.
Parameters
entry
TEntry
entry to filter
Returns
boolean
Inherited from
ts
EntryFilter_Base.predicate
stale?
ts
optional stale: null | boolean;
If true
or false
, it will only return entries that match the stale status. If set to null
or undefined
, it matches both. Requires entry.options
to be set.
Inherited from
ts
EntryFilter_Base.stale
status?
ts
optional status: null | DataStateStatus;
If it has a non nullish value, it only returns the entries with the given status.
Inherited from
ts
EntryFilter_Base.status