dsherret / dsherret/ts-morph

Method to discover what the discriminant properties of a union type are

Open
#880 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**

One of the features of Tydoc is to extract union types and discover if it is a discriminant union or not. If it is, which property or properties can be used as discriminators.

I think this feature would be useful to others generally so thought it perhaps should be a method on the union type class.

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.