redux-actions-ts:Type带TypeScript帮助程序包的Redux-Actions

时间:2021-05-17 00:11:29
【文件属性】:
文件名称:redux-actions-ts:Type带TypeScript帮助程序包的Redux-Actions
文件大小:105KB
文件格式:ZIP
更新时间:2021-05-17 00:11:29
TypeScript Redux-Actions-TS :atom_symbol: 带TypeScript帮助程序包的Redux-Actions 如何使用它? 安装 yarn add redux-actions-ts 创建类型化和异步操作 import { createAsyncActions , createTypedAction } form 'redux-actions-ts' // async example const { request : signInRequest , success : signInSuccess , failure : signInFailure , } = createAsyncActions < Credentials> ( 'SIGN_IN' ) // Create your payload type somewhere // type Credentia
【文件预览】:
redux-actions-ts-master
----.github()
--------FUNDING.yml(647B)
--------workflows()
----yarn.lock(260KB)
----src()
--------index.ts(3KB)
----tsconfig.json(528B)
----LICENSE(1KB)
----test()
--------actions.test.ts(2KB)
----README.md(3KB)
----.gitignore(42B)
----package.json(1KB)

网友评论