Skip to content

Commit

Permalink
feat: allow usage of experience type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoste committed Jun 20, 2024
1 parent d44b47e commit fce9d4f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/interfaces/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class Annotation {
}

export const availableAnnotations = {
// Targeting ContentType
'Contentful:AggregateRoot': new Annotation({
id: 'Contentful:AggregateRoot',
targets: [
Expand All @@ -74,6 +75,15 @@ export const availableAnnotations = {
}
]
}),
'Contentful:ExperienceType': new Annotation({
id: 'Contentful:ExperienceType',
targets: [
{
type: 'ContentType'
}
]
}),
// Targeting ContentTypeField
'Contentful:AggregateComponent': new Annotation({
id: 'Contentful:AggregateComponent',
targets: [
Expand Down

0 comments on commit fce9d4f

Please sign in to comment.