Shape type registry for discriminated unions (extensible). Custom shapes can extend this via declaration merging:
declare module 'crashcat' { interface ShapeTypeRegistry { [ShapeType.USER_1]: MyCustomShape; }} Copy
declare module 'crashcat' { interface ShapeTypeRegistry { [ShapeType.USER_1]: MyCustomShape; }}
Shape type registry for discriminated unions (extensible). Custom shapes can extend this via declaration merging:
Example