Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for union of interfaces #1120

Open
moltar opened this issue Jul 15, 2023 · 0 comments
Open

Add support for union of interfaces #1120

moltar opened this issue Jul 15, 2023 · 0 comments
Labels

Comments

@moltar
Copy link

moltar commented Jul 15, 2023

Right now only primitive types are supported as unions.

What would support for interfaces look like?

function supportedUnionOptionType(type: any): type is string {
return type && (typeof(type) === 'string' && PRIMITIVE_TYPES.includes(type));
}

if (!supportedUnionOptionType(option.type)) {
return undefined;
}

@mrgrain mrgrain added the p2 label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants