Skip to content

Commit

Permalink
fix(types): add missing placeholder property on date/datetime schem…
Browse files Browse the repository at this point in the history
…a definitions
  • Loading branch information
rexxars committed Jul 11, 2022
1 parent a312e2e commit 245201f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@sanity/types/src/schema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export namespace Schema {
export interface DateDefinition extends BaseDefinitionOptions {
type: 'date'
options?: DateOptions
placeholder?: string
}

export interface DatetimeOptions {
Expand All @@ -207,6 +208,7 @@ export namespace Schema {
export interface DatetimeDefinition extends BaseDefinitionOptions {
type: 'datetime'
options?: DatetimeOptions
placeholder?: string
}

export interface DocumentDefinition extends Omit<ObjectDefinition, 'type'> {
Expand Down

0 comments on commit 245201f

Please sign in to comment.