Skip to content

Commit

Permalink
chore(types): add diff to components in BaseDefinitionOptions a…
Browse files Browse the repository at this point in the history
…nd `BaseSchemaType`
  • Loading branch information
hermanwikner authored and rexxars committed Sep 14, 2022
1 parent ad7d724 commit 9473981
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@sanity/types/src/schema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ export namespace Schema {
validation?: SchemaValidationValue
icon?: React.ComponentType | React.ReactNode
components?: {
diff?: React.ComponentType<any> // @todo: use `DiffProps` here
field?: React.ComponentType<any> // @todo: use `FieldProps` here
item?: React.ComponentType<any> // @todo: use `ItemProps` here
input?: React.ComponentType<any> // @todo: use `InputProps` here
item?: React.ComponentType<any> // @todo: use `ItemProps` here
preview?: React.ComponentType<any> // @todo: use `PreviewProps` here
}
// TODO
Expand Down Expand Up @@ -498,9 +499,10 @@ export interface BaseSchemaType {
validation?: SchemaValidationValue
preview?: PreviewConfig
components?: {
diff?: React.ComponentType<any> // @todo: use `DiffProps` here
field?: React.ComponentType<any> // @todo: use `FieldProps` here
item?: React.ComponentType<any> // @todo: use `ItemProps` here
input?: React.ComponentType<any> // @todo: use `InputProps` here
item?: React.ComponentType<any> // @todo: use `ItemProps` here
preview?: React.ComponentType<any> // @todo: use `PreviewProps` here
}

Expand Down

0 comments on commit 9473981

Please sign in to comment.