Skip to main content

$filter

Callable

  • $filter<Expr>(xs: Expr, predicate: (value: ValueItem<ExpressionTypeOfLiteral<Expr>>) => Expression<boolean, any, BooleanExpr>): ValueExpression<ExpressionTypeOfLiteral<Expr>, [ExpressionReturnType<AsExpression<Expr>>], FactsFomExprs<Expr>, InferExpressionType<ExpressionTypeOfLiteral<Expr>>>

  • Type parameters

    • Expr: LiteralOr<any[]>

    Parameters

    • xs: Expr
    • predicate: (value: ValueItem<ExpressionTypeOfLiteral<Expr>>) => Expression<boolean, any, BooleanExpr>

    Returns ValueExpression<ExpressionTypeOfLiteral<Expr>, [ExpressionReturnType<AsExpression<Expr>>], FactsFomExprs<Expr>, InferExpressionType<ExpressionTypeOfLiteral<Expr>>>

Index

Properties

readonlyoperator

operator: filter = 'filter'

readonlyparse

parse: (xs: any, predicate: any) => ValueExpression<unknown, [any], unknown, JSONExpr> = ...

Type declaration

    • (xs: any, predicate: any): ValueExpression<unknown, [any], unknown, JSONExpr>
    • Parameters

      • xs: any
      • predicate: any

      Returns ValueExpression<unknown, [any], unknown, JSONExpr>

readonlysymbol

symbol: $filter = '$filter'