IConnectionChecker interface
Class for connection type checking logic.
Signature:
export interface IConnectionChecker
Methods
Method | Description |
|---|---|
Check whether the current connection can connect with the target connection. | |
Checks whether the current connection can connect with the target connection, and return an error code if there are problems. | |
Check whether this connection can be made by dragging. | |
Check that connecting the given connections is safe, meaning that it would not break any of Blockly's basic assumptions (e.g. no self connections). | |
Check whether this connection is compatible with another connection with respect to the value type system. E.g. square_root("Hello") is not compatible. | |
Helper method that translates a connection error code into a string. |