import type { ContentRelationshipField, EmptyContentRelationshipField, FilledContentRelationshipField, } from "../value/contentRelationship" import type { PrismicDocument } from "../value/document" import type { PrismicMigrationDocument } from "./Document" type ValueOrThunk = T | (() => Promise | T) /** A content relationship field in a migration. */ export type MigrationContentRelationship = | ValueOrThunk | undefined> | (Pick & { id: ValueOrThunk | undefined> }) /** * The minimum amount of information needed to represent a content relationship field with the * migration API. */ export type MigrationContentRelationshipField = | Pick | EmptyContentRelationshipField