google / google/schema-dts

'@type' as array

Open
#189 5 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.