@jswork/types 1.0.7 → 1.0.9

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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="./modules/antd.d.ts" />
1
2
  /// <reference types="./modules/business.d.ts" />
2
3
  /// <reference types="./modules/data.d.ts" />
3
4
  /// <reference types="./modules/event.d.ts" />
@@ -0,0 +1,8 @@
1
+ type CellProps = {
2
+ text: string;
3
+ record: any;
4
+ };
5
+
6
+ type CellFnItem = {
7
+ [key: string]: (text: string, record: any) => any;
8
+ };
@@ -5,3 +5,9 @@ type Model = {
5
5
  type Items = {
6
6
  items: any[];
7
7
  }
8
+
9
+ type CategoryItem = {
10
+ label: string;
11
+ value: string;
12
+ children?: CategoryItem[];
13
+ };
@@ -1,16 +1,16 @@
1
- export interface StdEvent {
1
+ type StdEvent = {
2
2
  target: { value: any };
3
- }
3
+ };
4
4
 
5
- export interface StdCustomEvent {
5
+ type StdCustomEvent = {
6
6
  detail: { value: any };
7
- }
7
+ };
8
8
 
9
- export interface Destroyable {
9
+ type Destroyable = {
10
10
  destroy(): void;
11
- }
11
+ };
12
12
 
13
- export interface FormWidget {
13
+ type FormWidget = {
14
14
  onChange: (value: any) => void;
15
15
  value: any;
16
- }
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/types",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Common types for typescript.",
5
5
  "homepage": "https://github.com/afeiship/types",
6
6
  "license": "MIT",