Skip to content

Commit

Permalink
fix: adds purpose field to SanityCreateOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Oct 20, 2024
1 parent 1352811 commit e5fd3d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@sanity/types/src/schema/definition/type/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export type FieldGroupDefinition = {
export interface SanityCreateOptions {
/** Set to true to exclude a type or field from appearing in Sanity Create */
exclude?: boolean

/**
* A short description of what the type or field is used for.
* Purpose can be used to improve how and when content mapping uses the field.
* */
purpose?: string
}

/**
Expand Down

0 comments on commit e5fd3d3

Please sign in to comment.