@meadmin/core 1.3.4 → 1.3.5
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/asyncGlobal.d.ts +1 -1
- package/package.json +6 -1
- package/types/entity.d.ts +11 -0
package/dist/asyncGlobal.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meadmin/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,8 +13,13 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist/**/*.js",
|
|
15
15
|
"dist/**/*.d.ts",
|
|
16
|
+
"types/**/*.ts",
|
|
16
17
|
"index.d.ts"
|
|
17
18
|
],
|
|
19
|
+
"exports": {
|
|
20
|
+
"./types/*": "./types/*.d.ts",
|
|
21
|
+
".": "./dist/index.js"
|
|
22
|
+
},
|
|
18
23
|
"bugs": {
|
|
19
24
|
"url": "https://github.com/meadmin-cn/meadmin"
|
|
20
25
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Op } from '@sequelize/core';
|
|
2
|
+
import { WhereAttributeHash } from '@sequelize/core/_non-semver-use-at-your-own-risk_/abstract-dialect/where-sql-builder-types.js';
|
|
3
|
+
|
|
4
|
+
type AllowNotOrAndWithImplicitAndArrayRecursive<T> = T & {
|
|
5
|
+
[Op.or]: any;
|
|
6
|
+
} & {
|
|
7
|
+
[Op.and]: any;
|
|
8
|
+
} & {
|
|
9
|
+
[Op.not]: any;
|
|
10
|
+
};
|
|
11
|
+
export type NormalWhereOptions<TAttributes> = AllowNotOrAndWithImplicitAndArrayRecursive<WhereAttributeHash<TAttributes>>; //seqlize 对应的where类型过于复杂,无法使用,使用自定义类型表示常用的where类型
|