W3cubDocs

/Haxe

EitherType<T1, T2>(Dynamic)

package haxe.extern

from T2, T1 to T2, T1

Available on all platforms

An abstract type allowing values to be either of T1 or T2 type. Supports implicit casts from/to either types.

It is useful for interfacing with external code on dynamic platforms such as JavaScript or Python.

Otherwise, use of this type is discouraged.

See also:

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/extern/EitherType.html