@faasjs/ant-design 0.0.5-beta.5 → 0.0.5-beta.6
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 +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -814,6 +814,8 @@ Request faas server
|
|
|
814
814
|
|
|
815
815
|
`Promise`\<`Response`\<`FaasData`\<`PathOrData`\>\>\>
|
|
816
816
|
|
|
817
|
+
**`Example`**
|
|
818
|
+
|
|
817
819
|
```ts
|
|
818
820
|
faas<{ title: string }>('post/get', { id: 1 }).then(res => {
|
|
819
821
|
console.log(res.data.title)
|
|
@@ -933,7 +935,9 @@ Request faas server with React hook
|
|
|
933
935
|
|
|
934
936
|
`FaasDataInjection`\<`FaasData`\<`PathOrData`\>\>
|
|
935
937
|
|
|
936
|
-
|
|
938
|
+
**`Example`**
|
|
939
|
+
|
|
940
|
+
```tsx
|
|
937
941
|
function Post ({ id }) {
|
|
938
942
|
const { data } = useFaas<{ title: string }>('post/get', { id })
|
|
939
943
|
return <h1>{data.title}</h1>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.5-beta.
|
|
3
|
+
"version": "0.0.5-beta.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lodash-es": "*"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@faasjs/react": "0.0.5-beta.
|
|
29
|
+
"@faasjs/react": "0.0.5-beta.6",
|
|
30
30
|
"antd": "*",
|
|
31
31
|
"react": "*",
|
|
32
32
|
"react-dom": "*",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@testing-library/jest-dom": "*",
|
|
38
38
|
"@testing-library/react": "*",
|
|
39
39
|
"@testing-library/user-event": "*",
|
|
40
|
-
"@faasjs/react": "0.0.5-beta.
|
|
40
|
+
"@faasjs/react": "0.0.5-beta.6",
|
|
41
41
|
"antd": "*",
|
|
42
42
|
"react": "*",
|
|
43
43
|
"react-dom": "*",
|