@modern-js-reduck/plugin-auto-actions
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.5
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.filter = exports.splice = exports.concat = exports.unshift = exports.shift = exports.pop = exports.push = void 0; | ||
exports.unshift = exports.splice = exports.shift = exports.push = exports.pop = exports.filter = exports.concat = void 0; | ||
@@ -9,0 +9,0 @@ const push = (state, payload) => state.concat(payload); |
@@ -8,3 +8,3 @@ import { Model } from '@modern-js-reduck/store/dist/types/types'; | ||
interface GetActions<M extends Model> { | ||
autoActions: M['_']['state'] extends string | number | null | undefined | ((...args: any[]) => any) | RegExp | symbol ? ExractDispatchAction<typeof primitiveActions, M['_']['state']> : M['_']['state'] extends any[] ? ArrayDisptachActions<M['_']['state']> : M['_']['state'] extends Record<string, any> ? ObjectDispatchActions<M['_']['state']> : never; | ||
autoActions: M['_']['state'] extends string | number | null | undefined | ((...args: any[]) => any) | RegExp | symbol ? ExractDispatchAction<typeof primitiveActions, M['_']['state']> : M['_']['state'] extends any[] ? ArrayDisptachActions<M['_']['state']> : M['_']['state'] extends Record<string, any> ? ObjectDispatchActions<M['_']['state']> : Record<string, unknown>; | ||
} | ||
@@ -11,0 +11,0 @@ } |
{ | ||
"name": "@modern-js-reduck/plugin-auto-actions", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.5", | ||
"jsnext:source": "./src/index.ts", | ||
@@ -18,9 +18,2 @@ "types": "./dist/types/index.d.ts", | ||
}, | ||
"scripts": { | ||
"prepare": "pnpm build", | ||
"prepublishOnly": "pnpm build --platform", | ||
"new": "modern new", | ||
"build": "modern build", | ||
"test": "modern test" | ||
}, | ||
"dependencies": { | ||
@@ -32,3 +25,3 @@ "@babel/runtime": "^7" | ||
"@modern-js/plugin-testing": "^1.0.0-rc.1", | ||
"@modern-js-reduck/store": "^1.0.0-rc.1", | ||
"@modern-js-reduck/store": "^1.0.0-rc.5", | ||
"@types/jest": "^26", | ||
@@ -43,4 +36,13 @@ "@types/node": "^14", | ||
"peerDependencies": { | ||
"@modern-js-reduck/store": "^0.1.0" | ||
"@modern-js-reduck/store": "^1.0.0-rc.5x" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/", | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"new": "modern new", | ||
"build": "modern build", | ||
"test": "modern test" | ||
} | ||
} | ||
} |
<p align="center"> | ||
<a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs.png" width="300" alt="Modern.js Logo" /></a> | ||
<a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a> | ||
</p> | ||
@@ -4,0 +4,0 @@ |
@@ -33,3 +33,3 @@ import { createPlugin } from '@modern-js-reduck/store'; | ||
? ObjectDispatchActions<M['_']['state']> | ||
: never; | ||
: Record<string, unknown>; | ||
} | ||
@@ -36,0 +36,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43898
47