@bob-kit/types 0.0.5 → 0.0.7
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/errors.d.ts +5 -1
- package/dist/errors.js +4 -0
- package/dist/index.d.ts +2 -6
- package/package.json +8 -7
package/dist/errors.d.ts
CHANGED
|
@@ -20,8 +20,12 @@ export declare const BobErrors: {
|
|
|
20
20
|
readonly CollectFiles: "CollectFiles";
|
|
21
21
|
readonly InvalidInput: "InvalidInput";
|
|
22
22
|
readonly IO: "IO";
|
|
23
|
+
readonly InvalidOrder: "InvalidOrder";
|
|
24
|
+
readonly InvalidEmptyNullPriority: "InvalidEmptyNullPriority";
|
|
25
|
+
readonly UndefinedCaller: "UndefinedCaller";
|
|
26
|
+
readonly MultipleActions: "MultipleActions";
|
|
23
27
|
};
|
|
24
|
-
export type
|
|
28
|
+
export type BobQueryError = {
|
|
25
29
|
name: (typeof BobErrors)[keyof typeof BobErrors];
|
|
26
30
|
message: string;
|
|
27
31
|
};
|
package/dist/errors.js
CHANGED
|
@@ -20,4 +20,8 @@ export const BobErrors = {
|
|
|
20
20
|
CollectFiles: "CollectFiles",
|
|
21
21
|
InvalidInput: "InvalidInput",
|
|
22
22
|
IO: "IO",
|
|
23
|
+
InvalidOrder: "InvalidOrder",
|
|
24
|
+
InvalidEmptyNullPriority: "InvalidEmptyNullPriority",
|
|
25
|
+
UndefinedCaller: "UndefinedCaller",
|
|
26
|
+
MultipleActions: "MultipleActions",
|
|
23
27
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BobQueryError } from "./errors.js";
|
|
2
2
|
export type Motor = "sqlite" | "mariadb" | "mysql" | "postgres";
|
|
3
3
|
export type Memory = {
|
|
4
4
|
set: (id: string, value: BobQueryResult) => void;
|
|
@@ -15,9 +15,5 @@ export type BobQueryResult = {
|
|
|
15
15
|
tables: string[];
|
|
16
16
|
actions: string[];
|
|
17
17
|
};
|
|
18
|
-
error?:
|
|
19
|
-
};
|
|
20
|
-
export type BobResult<T = any> = {
|
|
21
|
-
value?: T;
|
|
22
|
-
error?: BobError;
|
|
18
|
+
error?: BobQueryError;
|
|
23
19
|
};
|
package/package.json
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
"name": "@bob-kit/types",
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.7",
|
|
6
6
|
"description": "",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"build": "tsc && tsc-alias"
|
|
10
|
+
},
|
|
7
11
|
"keywords": [],
|
|
8
12
|
"author": "",
|
|
9
13
|
"license": "ISC",
|
|
14
|
+
"packageManager": "pnpm@10.4.1",
|
|
10
15
|
"devDependencies": {
|
|
11
16
|
"tsc-alias": "1.8.16",
|
|
12
17
|
"typescript": "5.9.3"
|
|
@@ -25,9 +30,5 @@
|
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"dist"
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
31
|
-
"build": "tsc && tsc-alias"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
33
|
+
]
|
|
34
|
+
}
|