UNPKG

datum-focus

Version:

Data shape, model, metadata, JSON, JSON Schema, GraphQL, MongoDB query and aggregations, iterator generators

18 lines (14 loc) 505 B
/** Variable Expression Operators */ /** Defines variables for use within the scope of a subexpression and * returns the result of the subexpression. Accepts named parameters. * * Accepts any number of argument expressions. */ const $let = "$let"; const VARIABLE_OPERATORS = [ $let ] as const; export type VariableExpressionOperator = typeof VARIABLE_OPERATORS[number]; export const isVariableExpressionOperator = ( val: any ): val is VariableExpressionOperator => val in VARIABLE_OPERATORS;