- $policy<Facts>(expressions: Facts): Policy<InputFromExpressions<Facts>, OutputFromFacts<Facts>>
Type parameters
- Facts: Record<string, Expression<any, any, string | number | boolean | FromExpr | number[] | ValueItemExpr | string[] | boolean[] | MapExpr | FilterExpr | AddExpr | SubExpr | MulExpr | DivExpr | ModExpr | MinExpr | MaxExpr | ConcatExpr | IfExpr | AndExpr | OrExpr | EqualExpr | NotExpr | GtExpr | GteExpr | LtExpr | LteExpr | StartsWithExpr | EndsWithExpr | IncludesExpr | AllExpr | AnyExpr | {}>>
Parameters
Returns Policy<InputFromExpressions<Facts>, OutputFromFacts<Facts>>