rado 0.2.33 → 0.2.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.
package/dist/define/Table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Callable } from '../util/Callable.js';
|
|
2
2
|
import { Column, ColumnData, OptionalColumn, PrimaryColumn } from './Column.js';
|
|
3
3
|
import { EV, Expr } from './Expr.js';
|
|
4
4
|
import type { Fields } from './Fields.js';
|
|
@@ -18,7 +18,7 @@ export declare class TableData {
|
|
|
18
18
|
};
|
|
19
19
|
constructor(data: TableData);
|
|
20
20
|
}
|
|
21
|
-
export interface TableInstance<Definition> extends
|
|
21
|
+
export interface TableInstance<Definition> extends Callable {
|
|
22
22
|
(conditions: {
|
|
23
23
|
[K in keyof Definition]?: Definition[K] extends Expr<infer V> ? EV<V> : never;
|
|
24
24
|
}): TableSelect<Definition>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Callable } from '../util/Callable.js';
|
|
2
2
|
import { Column } from './Column.js';
|
|
3
3
|
import { EV, Expr } from './Expr.js';
|
|
4
4
|
import { Fields } from './Fields.js';
|
|
@@ -6,7 +6,7 @@ import { Selection } from './Selection.js';
|
|
|
6
6
|
import { Table } from './Table.js';
|
|
7
7
|
import { Target } from './Target.js';
|
|
8
8
|
import { Select } from './query/Select.js';
|
|
9
|
-
export interface VirtualTableInstance<Definition> extends
|
|
9
|
+
export interface VirtualTableInstance<Definition> extends Callable {
|
|
10
10
|
(conditions: {
|
|
11
11
|
[K in keyof Definition]?: Definition[K] extends Expr<infer V> ? EV<V> : never;
|
|
12
12
|
}): Select<Table.Select<Definition>>;
|
package/dist/util/Callable.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export declare class Callable {
|
|
2
2
|
constructor(fn: Function);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
declare class ClearFunctionProto {
|
|
5
5
|
get name(): unknown;
|
|
6
6
|
get length(): unknown;
|
|
7
7
|
get call(): unknown;
|
|
8
|
+
get caller(): unknown;
|
|
8
9
|
get apply(): unknown;
|
|
9
10
|
get bind(): unknown;
|
|
10
11
|
get prototype(): unknown;
|
|
12
|
+
get arguments(): unknown;
|
|
11
13
|
}
|
|
14
|
+
export interface Callable extends ClearFunctionProto {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rado",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"sqlite": [
|
|
31
31
|
"dist/sqlite.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"util/*": [
|
|
34
|
+
"dist/util/*.d.ts"
|
|
32
35
|
]
|
|
33
36
|
}
|
|
34
37
|
},
|