refactor(typescript): introduce the Constructor<T> utility type by tbouffard · Pull Request #1011 · maxGraph/maxGraph
Add a generic Constructor<T> type in types.ts to simplify and reuse constructor type declarations: - Replace the inline constructor type in ShapeConstructor with Constructor<Shape> - Use ShapeConstructor in EdgeHandler to replace the ad-hoc cast
tbouffard
deleted the
refactor/introduce_type_Constructor
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters