Custom Shape Registry. Empty by default. Augment it to declare the options of shapes you add with defineShape(), so Konfeti.fire({ shapes: [{ type: "yourShape", ... }] }) is fully typed.
defineShape()
Konfeti.fire({ shapes: [{ type: "yourShape", ... }] })
declare module "konfeti" { interface ShapeRegistry { diamond: { sharpness?: number }; }} Copy
declare module "konfeti" { interface ShapeRegistry { diamond: { sharpness?: number }; }}
Custom Shape Registry. Empty by default. Augment it to declare the options of shapes you add with
defineShape(), soKonfeti.fire({ shapes: [{ type: "yourShape", ... }] })is fully typed.Example