Open
Description
Question
- I've checked documentation and searched for existing issues
- I tried GitHub Discussions
Why is the instance type for types.union(types.string, types.array(types.number))
inferred as string | (number[] & ...) | undefined
? I thought that it should be just string | (number[] & ...)
without undefined
case. Is this behaviour intended or it is a mistake in typings?