Module: unions

Unions for Typed Maps and Types
Source:

Methods

(inner) unionTypedMaps(typedMap1, typedMap2) → {Map}

Union two Typed Maps based on Keys and Types
Parameters:
Name Type Description
typedMap1 Map Map to Union
typedMap2 Map Map to Union
Source:
Throws:
Throws an error if an error occurred when unioning Typed Maps
Returns:
Unioned Map
Type
Map

(inner) unionTypes(type1, type2) → {Object|null}

Union two Types based on Types
Parameters:
Name Type Description
type1 Object Type to Union (array, object, types)
type2 Object Type to Union (array, object, types)
Source:
Returns:
Unioned Type if not null
Type
Object | null