@faasjs/ant-design 8.0.0-beta.30 → 8.0.0-beta.31
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.ts +1 -46
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as _$react from "react";
|
|
|
5
5
|
import { CSSProperties, ComponentType, Dispatch, FC, JSX, LazyExoticComponent, ReactElement, ReactNode, SetStateAction, lazy } from "react";
|
|
6
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { Dayjs } from "dayjs";
|
|
8
|
+
import { FaasActionPaths, FaasParams } from "@faasjs/types";
|
|
8
9
|
import * as _$antd_es_form0 from "antd/es/form/index.js";
|
|
9
10
|
import { RuleObject } from "antd/es/form/index.js";
|
|
10
11
|
import { FilterValue, SorterResult, TableCurrentDataSource } from "antd/es/table/interface.js";
|
|
@@ -17,52 +18,6 @@ import { Tab } from "@rc-component/tabs/lib/interface.js";
|
|
|
17
18
|
import { MessageInstance } from "antd/es/message/interface.js";
|
|
18
19
|
import { NotificationInstance } from "antd/es/notification/interface.js";
|
|
19
20
|
|
|
20
|
-
//#region ../types/src/index.d.ts
|
|
21
|
-
/**
|
|
22
|
-
* # @faasjs/types
|
|
23
|
-
*
|
|
24
|
-
* Action Type definitions for FaasJS and cross backend and frontend.
|
|
25
|
-
*
|
|
26
|
-
* [](https://github.com/faasjs/faasjs/blob/main/packages/types/LICENSE)
|
|
27
|
-
* [](https://www.npmjs.com/package/@faasjs/types)
|
|
28
|
-
*
|
|
29
|
-
* ## Install
|
|
30
|
-
*
|
|
31
|
-
* Normally you don't need to install this package manually. It's a dependency of `@faasjs/core` and `@faasjs/react`.
|
|
32
|
-
*
|
|
33
|
-
* ## Usage
|
|
34
|
-
*
|
|
35
|
-
* ### TypeScript config presets
|
|
36
|
-
*
|
|
37
|
-
* `@faasjs/types` also provides shared TypeScript presets under `tsconfig/`:
|
|
38
|
-
*
|
|
39
|
-
* - `@faasjs/types/tsconfig/base.json`: strict base options for common TypeScript projects.
|
|
40
|
-
* - `@faasjs/types/tsconfig/react.json`: base options with `jsx: "react-jsx"` for React projects.
|
|
41
|
-
* - `@faasjs/types/tsconfig/build.json`: build-oriented options for Vite apps, packages, and workspace modules.
|
|
42
|
-
*
|
|
43
|
-
* In your tsconfig.json:
|
|
44
|
-
*
|
|
45
|
-
* ```json
|
|
46
|
-
* {
|
|
47
|
-
* "extends": "@faasjs/types/tsconfig/build.json"
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Interface for defining FaasJS actions.
|
|
53
|
-
*/
|
|
54
|
-
interface FaasActions {}
|
|
55
|
-
/**
|
|
56
|
-
* Infer all declared action paths.
|
|
57
|
-
*/
|
|
58
|
-
type FaasActionPaths = Extract<keyof FaasActions, string>;
|
|
59
|
-
/**
|
|
60
|
-
* Infer params type by action path.
|
|
61
|
-
*
|
|
62
|
-
* @template T - Candidate action path type.
|
|
63
|
-
*/
|
|
64
|
-
type FaasParams<T = unknown> = T extends FaasActionPaths ? FaasActions[T]['Params'] : T extends string ? Record<string, unknown> : never;
|
|
65
|
-
//#endregion
|
|
66
21
|
//#region src/Loading/index.d.ts
|
|
67
22
|
/**
|
|
68
23
|
* Props for the {@link Loading} component.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.31",
|
|
4
4
|
"homepage": "https://faasjs.com/doc/ant-design",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/faasjs/faasjs/issues"
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@ant-design/icons": "*",
|
|
30
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
30
|
+
"@faasjs/react": ">=8.0.0-beta.31",
|
|
31
|
+
"@faasjs/types": ">=8.0.0-beta.31",
|
|
31
32
|
"@types/lodash-es": "*",
|
|
32
33
|
"@types/react": "^19.0.0",
|
|
33
34
|
"@types/react-dom": "^19.0.0",
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"@ant-design/icons": "*",
|
|
42
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
43
|
+
"@faasjs/react": ">=8.0.0-beta.31",
|
|
44
|
+
"@faasjs/types": ">=8.0.0-beta.31",
|
|
43
45
|
"antd": "^6.0.0",
|
|
44
46
|
"lodash-es": "*",
|
|
45
47
|
"react": "^19.0.0",
|