Skip to content

Commit

Permalink
feat: add ResourceLink type (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
veu committed Feb 9, 2024
1 parent 740fc2f commit f8bf34b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ export interface Link<T extends string> {
}
}

/**
* ResourceLink is a reference object to another entity outside of the current space/environment
*/
export interface ResourceLink<T extends string> {
sys: {
type: 'ResourceLink'
linkType: T
urn: string
}
}

export interface VersionedLink<T extends string> {
sys: {
type: 'Link'
Expand Down

0 comments on commit f8bf34b

Please sign in to comment.