@iss-ai/easy-web-store 0.0.1 → 0.0.3
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/README.md +214 -182
- package/lib/easy/EasyCookiesStore.d.ts +124 -0
- package/lib/{src/easy/DexieStore.d.ts → easy/EasyDexieStore.d.ts} +25 -26
- package/lib/easy/EasyIndexedDb.d.ts +2 -0
- package/lib/easy/EasyLocalStorage.d.ts +105 -0
- package/lib/easy/EasyMemoryStore.d.ts +91 -0
- package/lib/easy/EasySessionStorage.d.ts +105 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/{src/interface → interface}/types.d.ts +18 -0
- package/lib/utils/Utils.d.ts +5 -0
- package/package.json +5 -1
- package/lib/src/index.d.ts +0 -2
|
@@ -43,6 +43,24 @@ export interface IQueryCondition<T extends IBase = any> {
|
|
|
43
43
|
/** 字段选择 */
|
|
44
44
|
fields?: Partial<Record<keyof T, 1>>;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* 查询条件值类型,支持简单值和复杂操作符
|
|
48
|
+
*/
|
|
49
|
+
export type QueryValue<T = any> = T | {
|
|
50
|
+
$eq?: T;
|
|
51
|
+
$neq?: T;
|
|
52
|
+
$gt?: T;
|
|
53
|
+
$gte?: T;
|
|
54
|
+
$lt?: T;
|
|
55
|
+
$lte?: T;
|
|
56
|
+
$in?: T[];
|
|
57
|
+
$nin?: T[];
|
|
58
|
+
$like?: string;
|
|
59
|
+
$likeIgnoreCase?: string;
|
|
60
|
+
$startsWith?: string;
|
|
61
|
+
$startsWithIgnoreCase?: string;
|
|
62
|
+
$regexp?: string | RegExp;
|
|
63
|
+
};
|
|
46
64
|
/**
|
|
47
65
|
* 分页结果接口
|
|
48
66
|
* @interface IPaginationResult
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iss-ai/easy-web-store",
|
|
3
3
|
"description": "A simple and efficient state management library for web applications.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"author": "",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"indexeddb",
|
|
8
|
+
"localstorage",
|
|
9
|
+
"sessionstorage",
|
|
10
|
+
"cookies",
|
|
11
|
+
"dexie",
|
|
8
12
|
"typescript",
|
|
9
13
|
"rollup",
|
|
10
14
|
"jest",
|
package/lib/src/index.d.ts
DELETED