View source
abstract OneOfTwo<T1, T2>(Dynamic)
package flixel.util.typeLimit
from T1, T2 to T1, T2
Available on all platforms
Useful to limit a Dynamic function argument's type to the specified type parameters. This does NOT make the use of Dynamic type-safe in any way (the underlying type is still Dynamic and Std.isOfType() checks + casts are necessary).