diff --git a/src/lib/isMigrationValue.ts b/src/lib/isMigrationValue.ts index 72613978..a0628db8 100644 --- a/src/lib/isMigrationValue.ts +++ b/src/lib/isMigrationValue.ts @@ -85,6 +85,10 @@ export const image = (value: UnknownValue): value is MigrationImage => { /** * Checks if a value is a migration link to media field. * + * @remarks + * `OptionalLinkProperties` is included because `MigrationContentRelationship` + * may be a link field, not strictly a content relationship field. + * * @param value - Value to check. * * @returns `true` if `value` is a migration link to media field, `false` @@ -95,7 +99,7 @@ export const image = (value: UnknownValue): value is MigrationImage => { */ export const linkToMedia = ( value: UnknownValue, -): value is MigrationLinkToMedia => { +): value is MigrationLinkToMedia & OptionalLinkProperties => { return ( typeof value === "object" && value !== null &&