Skip to content

Commit

Permalink
Revert "fix: add optional link fields to link to media migration fields"
Browse files Browse the repository at this point in the history
This reverts commit 6f89eee.
  • Loading branch information
angeloashmore committed Dec 17, 2024
1 parent 27839cf commit da02389
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/isMigrationValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ 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`
Expand All @@ -99,7 +95,7 @@ export const image = (value: UnknownValue): value is MigrationImage => {
*/
export const linkToMedia = (
value: UnknownValue,
): value is MigrationLinkToMedia & OptionalLinkProperties => {
): value is MigrationLinkToMedia => {
return (
typeof value === "object" &&
value !== null &&
Expand Down

0 comments on commit da02389

Please sign in to comment.