Function: getBlueprint()
Function: getBlueprint()
Get the blueprint value from a class.
Param
The class to get the blueprint from.
Param
The default value to return if the blueprint key is not found.
Call Signature
function getBlueprint<TClass, UReturn>(Class): undefined | UReturn;
Get the blueprint value from a class.
Type Parameters
TClass
TClass
extends ClassType
UReturn
UReturn
= StoneBlueprint
<IncomingEvent
, OutgoingResponse
>
Parameters
Class
TClass
The class to get the blueprint from.
Returns
undefined
| UReturn
The blueprint value or the default value if the key does not exist.
Param
The class to get the blueprint from.
Param
The default value to return if the blueprint key is not found.
Call Signature
function getBlueprint<TClass, UReturn>(Class, fallback): UReturn;
Get the blueprint value from a class.
Type Parameters
TClass
TClass
extends ClassType
UReturn
UReturn
= StoneBlueprint
<IncomingEvent
, OutgoingResponse
>
Parameters
Class
TClass
The class to get the blueprint from.
fallback
UReturn
The default value to return if the blueprint key is not found.
Returns
UReturn
The blueprint value or the default value if the key does not exist.
Param
The class to get the blueprint from.
Param
The default value to return if the blueprint key is not found.