Skip to content

Commit

Permalink
refactor(types): globalDocumentReference format to use ':' instead of…
Browse files Browse the repository at this point in the history
… '/'
  • Loading branch information
skogsmaskin committed Jan 30, 2025
1 parent 9f5974c commit 4c8dd09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export function isGlobalDocumentReference(
return false
}

return reference._ref.split('/').length === 3
return reference._ref.split(':').length === 3
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {type ObjectSchemaType, type PreviewConfig} from '../schema'
/** @beta */
export interface GlobalDocumentReferenceValue {
_type: string
_ref: `${string}/${string}/${string}`
_ref: `${string}:${string}:${string}`
_key?: string
_weak?: boolean
}
Expand Down

0 comments on commit 4c8dd09

Please sign in to comment.