@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
33 lines (30 loc) • 718 B
text/typescript
import type { CustomTypeModelFieldType } from "./types"
/**
* A link custom type field.
*
* More details: {@link https://prismic.io/docs/link}
*/
export interface CustomTypeModelLinkField {
type: typeof CustomTypeModelFieldType.Link
config?: {
label?: string | null
placeholder?: string
select?:
| null
| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]
allowText?: boolean
allowTargetBlank?: boolean
repeat?: boolean
variants?: string[]
}
}
/**
* Type of a link custom type field.
*
* More details: {@link https://prismic.io/docs/link}
*/
export const CustomTypeModelLinkSelectType = {
Document: "document",
Media: "media",
Web: "web",
} as const