Skip to main content

Home > blockly > RenderedConnection > setCheck

RenderedConnection.setCheck() method

Change a connection's compatibility. Rerender blocks as needed.

Signature:

setCheck(check: string | string[] | null): RenderedConnection;

Parameters

ParameterTypeDescription
checkstring | string[] | nullCompatible value type or list of value types. Null if all types are compatible.

Returns:

RenderedConnection

The connection being modified (to allow chaining).