refactor(typescript): introduce the Constructor<T> utility type by tbouffard · Pull Request #1011 · maxGraph/maxGraph

@tbouffard

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

coderabbitai[bot]

tbouffard

@tbouffard

coderabbitai[bot]

@tbouffard tbouffard deleted the refactor/introduce_type_Constructor branch

February 23, 2026 14:10