Constructors§
Source§new ExpressionBuilder<
T extends ChainContext = any,
Path extends string = any,
TCurr = TypeOfField<Path, T>,
>(
path: Path,
methodCalls?: string[],
options?: ExpressionBuilderOptions,
): ExpressionBuilder<T, Path, TCurr>
new ExpressionBuilder<
T extends ChainContext = any,
Path extends string = any,
TCurr = TypeOfField<Path, T>,
>(
path: Path,
methodCalls?: string[],
options?: ExpressionBuilderOptions,
): ExpressionBuilder<T, Path, TCurr>
Properties§
Source§filter: TCurr extends TElem[]
? (predicate: (item: TElem) => boolean) => this
: "Expected array " = ...
filter: TCurr extends TElem[]
? (predicate: (item: TElem) => boolean) => this
: "Expected array " = ...
Source§find: TCurr extends TElem[]
? (
predicate: (item: TElem) => boolean,
) => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
find: TCurr extends TElem[]
? (
predicate: (item: TElem) => boolean,
) => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
Source§first: TCurr extends any[]
? () => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
first: TCurr extends any[]
? () => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
Source§join: TCurr extends any[]
? (
separator: string,
) => ExpressionBuilder<any, any, string>
: "Expected array " = ...
join: TCurr extends any[]
? (
separator: string,
) => ExpressionBuilder<any, any, string>
: "Expected array " = ...
Source§last: TCurr extends any[]
? () => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
last: TCurr extends any[]
? () => ExpressionBuilder<T, `${Path}[${number}]`>
: "Expected array " = ...
Source§split: TCurr extends string
? (
separator: string,
) => ExpressionBuilder<any, any, string[]>
: "Expected string " = ...
split: TCurr extends string
? (
separator: string,
) => ExpressionBuilder<any, any, string[]>
: "Expected string " = ...
Methods§
Source§call(
methodName: string,
...args: any[],
): ExpressionBuilder<T, any>
call(
methodName: string,
...args: any[],
): ExpressionBuilder<T, any>
Arbitrary method call
The type of the current field Should only be used with
typeof
Returns null.