'@type' as array
Open
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Was wondering if it would be possible to use the @type in an array.
My use case would be in the context of utilizing two types like this:
`'@type': (['Car', 'Product']`
currently working around this by casting to one of the types
`'@type': (['Car', 'Product'] as unknown as 'Car')`
Would be keen to hear if this would be possible?
Contributor guide
Assessment
This issue has not been assessed yet.