@faasjs/ant-design 3.4.0 → 3.5.0

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 CHANGED
@@ -201,7 +201,7 @@ interface useAppProps {
201
201
  */
202
202
  declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
203
203
  declare namespace App {
204
- var useApp: () => Readonly<useAppProps>;
204
+ var useApp: <NewT extends useAppProps = useAppProps>() => Readonly<useAppProps | NewT>;
205
205
  var whyDidYouRender: boolean;
206
206
  }
207
207
  /**
@@ -213,7 +213,7 @@ declare namespace App {
213
213
  * const { message, notification, setModalProps, setDrawerProps } = useApp()
214
214
  * ```
215
215
  */
216
- declare const useApp: () => Readonly<useAppProps>;
216
+ declare const useApp: <NewT extends useAppProps = useAppProps>() => Readonly<useAppProps | NewT>;
217
217
 
218
218
  interface BlankProps {
219
219
  value?: any;
package/dist/index.d.ts CHANGED
@@ -201,7 +201,7 @@ interface useAppProps {
201
201
  */
202
202
  declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
203
203
  declare namespace App {
204
- var useApp: () => Readonly<useAppProps>;
204
+ var useApp: <NewT extends useAppProps = useAppProps>() => Readonly<useAppProps | NewT>;
205
205
  var whyDidYouRender: boolean;
206
206
  }
207
207
  /**
@@ -213,7 +213,7 @@ declare namespace App {
213
213
  * const { message, notification, setModalProps, setDrawerProps } = useApp()
214
214
  * ```
215
215
  */
216
- declare const useApp: () => Readonly<useAppProps>;
216
+ declare const useApp: <NewT extends useAppProps = useAppProps>() => Readonly<useAppProps | NewT>;
217
217
 
218
218
  interface BlankProps {
219
219
  value?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,7 +34,7 @@
34
34
  "dist"
35
35
  ],
36
36
  "peerDependencies": {
37
- "@faasjs/react": "3.4.0",
37
+ "@faasjs/react": "3.5.0",
38
38
  "antd": "*",
39
39
  "@ant-design/icons": "*",
40
40
  "lodash-es": "*",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/lodash-es": "*",
47
- "@faasjs/react": "3.4.0",
47
+ "@faasjs/react": "3.5.0",
48
48
  "antd": "*",
49
49
  "@ant-design/icons": "*",
50
50
  "lodash-es": "*",