Skip to content

Commit ccda02c

Browse files
committed
feat(form): export ListProps and FormInstance types to enhance type support
1 parent 022aac3 commit ccda02c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
export type { AllPathsKeys, FieldElement } from 'skyroc-type-utils';
22

3+
export type { SubscribeMaskOptions } from './form-core/event';
4+
35
export type { Action } from './form-core/middleware';
46

7+
export type { Meta } from './form-core/types';
8+
9+
export type { ValidateMessages } from './form-core/validate';
10+
11+
export type { Rule } from './form-core/validation';
12+
513
export * from './react';

primitives/filed-form /src/react/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export type { FormProps } from './components/Form';
1212

1313
export { default as List } from './components/List';
1414

15-
export * from './hooks/FieldContext';
15+
export type { ListProps } from './components/List';
16+
17+
export type { FormInstance } from './hooks/FieldContext';
1618

1719
export { useArrayField } from './hooks/useFieldArray';
1820

0 commit comments

Comments
 (0)