@faasjs/ant-design 3.1.5 → 3.2.1
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -393,7 +393,7 @@ declare namespace FaasDataWrapper {
|
|
|
393
393
|
* const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
|
|
394
394
|
* ```
|
|
395
395
|
*/
|
|
396
|
-
declare function withFaasData<
|
|
396
|
+
declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
|
|
397
397
|
|
|
398
398
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
399
399
|
children?: UnionFaasItemElement<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -393,7 +393,7 @@ declare namespace FaasDataWrapper {
|
|
|
393
393
|
* const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
|
|
394
394
|
* ```
|
|
395
395
|
*/
|
|
396
|
-
declare function withFaasData<
|
|
396
|
+
declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
|
|
397
397
|
|
|
398
398
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
399
399
|
children?: UnionFaasItemElement<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"files": [
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@ant-design/icons": "*",
|
|
38
|
-
"lodash-es": "*"
|
|
39
|
-
},
|
|
40
36
|
"peerDependencies": {
|
|
41
|
-
"@faasjs/react": "3.1
|
|
37
|
+
"@faasjs/react": "3.2.1",
|
|
42
38
|
"antd": "*",
|
|
39
|
+
"@ant-design/icons": "*",
|
|
40
|
+
"lodash-es": "*",
|
|
43
41
|
"react": "*",
|
|
44
42
|
"react-dom": "*",
|
|
45
43
|
"react-router-dom": "*"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"@types/lodash-es": "*",
|
|
49
|
-
"@faasjs/react": "3.1
|
|
47
|
+
"@faasjs/react": "3.2.1",
|
|
50
48
|
"antd": "*",
|
|
49
|
+
"@ant-design/icons": "*",
|
|
50
|
+
"lodash-es": "*",
|
|
51
51
|
"react": "*",
|
|
52
52
|
"react-dom": "*",
|
|
53
53
|
"react-router-dom": "*"
|