atomic-state
Advanced tools
Comparing version 2.8.9 to 2.9.0
@@ -13,3 +13,6 @@ /** @license Atomic State | ||
}; | ||
export type ActionType<Args, T = any> = (args: { | ||
export type ActionType<T, Args = void> = Args extends void ? (args?: { | ||
state: T; | ||
dispatch: Dispatch<SetStateAction<T>>; | ||
} & ActionGet) => void : (args: { | ||
args: Args; | ||
@@ -16,0 +19,0 @@ state: T; |
{ | ||
"name": "atomic-state", | ||
"version": "2.8.9", | ||
"version": "2.9.0", | ||
"description": "Atomic State is a state management library for React", | ||
@@ -25,16 +25,16 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/preset-react": "^7.24.1", | ||
"@testing-library/react": "^15.0.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/react": "^18.2.79", | ||
"@types/react-dom": "^18.2.25", | ||
"babel-jest": "^29.7.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"ts-jest": "^29.1.2", | ||
"typescript": "^5.4.5" | ||
"@babel/preset-env": "7.24.5", | ||
"@babel/preset-react": "7.24.1", | ||
"@testing-library/react": "15.0.7", | ||
"@types/jest": "29.5.12", | ||
"@types/react": "18.3.2", | ||
"@types/react-dom": "18.3.0", | ||
"babel-jest": "29.7.0", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-test-renderer": "18.3.1", | ||
"ts-jest": "29.1.2", | ||
"typescript": "5.4.5" | ||
}, | ||
@@ -41,0 +41,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
724770
2151