Function: validateBlueprints()
Function: validateBlueprints()
function validateBlueprints<U, V>(blueprints): void;
Validates that the provided blueprints are valid objects.
This function checks if each blueprint in the provided array is an object, throwing a SetupError if an invalid blueprint is found.
Type Parameters
U
U
extends IncomingEvent
= IncomingEvent
V
V
extends OutgoingResponse
= OutgoingResponse
Parameters
blueprints
( | Record
<string
, any
> | StoneBlueprint
<U
, V
>)[]
An array of blueprints to validate.
Returns
void
Throws
- If any of the provided blueprints are not valid objects.
Example
validateBlueprints([blueprint1, blueprint2]);