Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesOnBeforeConnect

OnBeforeConnect

Source on GitHub 

The OnBeforeConnect type is a callback function that is called before a connection is created. It can prevent the connection or modify it by returning false or a modified connection.

type OnBeforeConnect = (connection: Connection) => Promise<boolean | Connection>;
Parameters:
NameTypeDefault
connectionConnection
Returns:
Last updated on