rado 0.1.32 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,8 +125,8 @@ export declare class Expr<T> {
125
125
  isNotNull(): Expr<boolean>;
126
126
  isNot(that: EV<T>): Expr<boolean>;
127
127
  is(that: EV<T> | Cursor.SelectSingle<T>): Expr<boolean>;
128
- isIn(that: EV<Array<T>> | Cursor<T>): Expr<boolean>;
129
- isNotIn(that: EV<Array<T>> | Cursor<T>): Expr<boolean>;
128
+ in(that: EV<Array<T>> | Cursor.SelectMultiple<T>): Expr<boolean>;
129
+ notIn(that: EV<Array<T>> | Cursor.SelectMultiple<T>): Expr<boolean>;
130
130
  add(this: Expr<number>, that: EV<number>): Expr<number>;
131
131
  substract(this: Expr<number>, that: EV<number>): Expr<number>;
132
132
  multiply(this: Expr<number>, that: EV<number>): Expr<number>;
package/dist/lib/Expr.js CHANGED
@@ -187,10 +187,10 @@ var _Expr = class {
187
187
  return this.isNull();
188
188
  return binop(this, "Equals" /* Equals */, that);
189
189
  }
190
- isIn(that) {
190
+ in(that) {
191
191
  return binop(this, "In" /* In */, that);
192
192
  }
193
- isNotIn(that) {
193
+ notIn(that) {
194
194
  return binop(this, "NotIn" /* NotIn */, that);
195
195
  }
196
196
  add(that) {
@@ -1,6 +1,6 @@
1
1
  import type { Cursor } from './Cursor';
2
2
  import type { Expr } from './Expr';
3
- type SelectionBase = Expr<any> | Cursor.SelectMultiple<any> | Cursor.SelectSingle<any>;
3
+ type SelectionBase = (() => any) | Expr<any> | Cursor.SelectMultiple<any> | Cursor.SelectSingle<any>;
4
4
  interface SelectionRecord extends Record<string, Selection> {
5
5
  }
6
6
  export type Selection = SelectionBase | SelectionRecord;
@@ -12,8 +12,8 @@ export declare namespace Selection {
12
12
  } ? K : T extends {
13
13
  [__cursorType](): infer K;
14
14
  } ? K : T extends Expr<infer K> ? K : T extends Record<string, Selection> ? {
15
- [K in keyof T]: Infer<T[K]>;
16
- } : T;
15
+ [K in keyof T as T[K] extends () => any ? never : K]: Infer<T[K]>;
16
+ } : T extends () => any ? never : T;
17
17
  type With<A, B> = Expr<Combine<A, B>>;
18
18
  type Combine<A, B> = Omit<A, keyof Infer<B>> & Infer<B>;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {