refactor(type)!: make AbstractGraph.getPlugin return `T | undefined` by tbouffard · Pull Request #842 · maxGraph/maxGraph

@tbouffard

Explicitly state that a plugin may not be available.

BREAKING CHANGE: The `AbstractGraph.getPlugin` method now explicitly returns `undefined` when a plugin is not found.
TypeScript users must update their code to handle the `undefined` case when calling this method.

coderabbitai[bot]

@tbouffard

@tbouffard

@tbouffard tbouffard deleted the refactor/graph_getPlugin_return_undefined branch

June 10, 2025 09:16