File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
packages/payload/src/admin/forms Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import type { TFunction } from '@payloadcms/translations'
2
2
3
- import type { ServerProps } from '../../config/types.js'
4
3
import type { Field } from '../../fields/config/types.js'
5
- import type { ClientFieldWithOptionalType } from './Field.js'
4
+ import type { ClientFieldWithOptionalType , ServerComponentProps } from './Field.js'
6
5
7
6
export type DescriptionFunction = ( { t } : { t : TFunction } ) => string
8
7
@@ -33,7 +32,7 @@ export type FieldDescriptionServerProps<
33
32
clientField : TFieldClient
34
33
readonly field : TFieldServer
35
34
} & GenericDescriptionProps &
36
- Partial < ServerProps >
35
+ ServerComponentProps
37
36
38
37
export type FieldDescriptionClientProps <
39
38
TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType ,
Original file line number Diff line number Diff line change 1
- import type { ServerProps } from '../../config/types.js'
2
1
import type { Field } from '../../fields/config/types.js'
3
- import type { ClientFieldWithOptionalType } from './Field.js'
2
+ import type { ClientFieldWithOptionalType , ServerComponentProps } from './Field.js'
4
3
5
4
export type GenericErrorProps = {
6
5
readonly alignCaret ?: 'center' | 'left' | 'right'
@@ -22,7 +21,7 @@ export type FieldErrorServerProps<
22
21
clientField : TFieldClient
23
22
readonly field : TFieldServer
24
23
} & GenericErrorProps &
25
- Partial < ServerProps >
24
+ ServerComponentProps
26
25
27
26
export type FieldErrorClientComponent <
28
27
TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType ,
Original file line number Diff line number Diff line change 1
- import type { ServerProps , StaticLabel } from '../../config/types.js'
1
+ import type { StaticLabel } from '../../config/types.js'
2
2
import type { Field } from '../../fields/config/types.js'
3
- import type { ClientFieldWithOptionalType } from './Field.js'
3
+ import type { ClientFieldWithOptionalType , ServerComponentProps } from './Field.js'
4
4
5
5
export type GenericLabelProps = {
6
6
readonly as ?: 'label' | 'span'
@@ -26,7 +26,7 @@ export type FieldLabelServerProps<
26
26
clientField : TFieldClient
27
27
readonly field : TFieldServer
28
28
} & GenericLabelProps &
29
- Partial < ServerProps >
29
+ ServerComponentProps
30
30
31
31
export type SanitizedLabelProps < TFieldClient extends ClientFieldWithOptionalType > = Omit <
32
32
FieldLabelClientProps < TFieldClient > ,
You can’t perform that action at this time.
0 commit comments