type Selector<T>
Type defining the allowed selectors on an object of type T
. Selectors can be: - a path string into type T
. - a function receiving a Protected
version of type T
, and returning an arbitrary value. - a tuple of Selectors
for type T
- an object where the property values are Selectors
for type T
.
Companion namespace: Selector
Definition
export type Selector<T> =
Path.Get
<T>
|
((value:
Protected
<T>) => any)
|
readonly
Selector
<T>[]
|
{
readonly [key: string
|
symbol]:
Selector
<T>;
};