Skip to content

Commit 2ef5e6f

Browse files
committed
style: 💄 run formatter
1 parent 949f4dd commit 2ef5e6f

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

src/__tests__/jsonExpressionEvaluateTests.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,18 +448,18 @@ export const jsonExpressionEvaluateTests = (check: Check) => {
448448

449449
// "source_ip": [{"cidr": "10.0.0.0/24"}]
450450
// xtest('IP address matching', () => {
451-
// const data = {
452-
// source_ip: '10.0.0.255',
453-
// };
454-
// check(['cidr', '10.0.0.0/24', ['get', '/source_ip']], true, data);
451+
// const data = {
452+
// source_ip: '10.0.0.255',
453+
// };
454+
// check(['cidr', '10.0.0.0/24', ['get', '/source_ip']], true, data);
455455
// });
456456

457457
// "price_usd": [{"numeric": [">", 0, "<=", 150]}]
458458
// xtest('between operator', () => {
459-
// const data = {
460-
// price_usd: 100,
461-
// };
462-
// check(['><=', 0, 150, ['/price_usd']], true, data);
459+
// const data = {
460+
// price_usd: 100,
461+
// };
462+
// check(['><=', 0, 150, ['/price_usd']], true, data);
463463
// });
464464

465465
// "store": [{"exists": true}]

src/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,19 +290,14 @@ export type JsonExpressionContext = JsonExpressionExecutionContext & JsonExpress
290290
export type OperatorDefinition<E extends Expression> = [
291291
/** Canonical operator name. */
292292
name: string,
293-
294293
/** Alternative names for this operator. */
295294
aliases: Array<string | number>,
296-
297295
/** Operator arity. -1 means operator is variadic. */
298296
arity: -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | [min: number, max: number],
299-
300297
/** Evaluates an expression with this operator. */
301298
eval: OperatorEval<E>,
302-
303299
/** Compile expression to executable JavaScript. */
304300
codegen: (ctx: OperatorCodegenCtx<E>) => ExpressionResult,
305-
306301
/**
307302
* Whether this expression has side effects. For example, data retrieval
308303
* expressions or random value generation is considered impure.

0 commit comments

Comments
 (0)