Skip to content

Commit

Permalink
Merge pull request #61 from yobananaboy15/add-target-property-to-mult…
Browse files Browse the repository at this point in the history
…ilink

Add target property to MultiLinkType
  • Loading branch information
dohomi authored Jan 12, 2024
2 parents 9ea3d37 + ab9e6e1 commit 0e1920e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/genericTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ async function generateMultiLinkTypeIfNotYetGenerated(title: string, compilerOpt
type: 'string',
enum: ['story']
},
target: {
type: 'string',
enum: ['_self', '_blank'],
},
story: {
type: 'object',
required: ['name', 'id', 'uuid', 'slug', 'full_slug'],
Expand Down Expand Up @@ -259,7 +263,11 @@ async function generateMultiLinkTypeIfNotYetGenerated(title: string, compilerOpt
linktype: {
type: 'string',
enum: ['asset', 'url']
}
},
target: {
type: 'string',
enum: ['_self', '_blank'],
},
}
},
{
Expand All @@ -271,7 +279,11 @@ async function generateMultiLinkTypeIfNotYetGenerated(title: string, compilerOpt
linktype: {
type: 'string',
enum: ['email']
}
},
target: {
type: 'string',
enum: ['_self', '_blank'],
},
}
}
]
Expand Down

0 comments on commit 0e1920e

Please sign in to comment.