diff --git a/src/jcanvas.d.ts b/src/jcanvas.d.ts index a6659be..23190da 100644 --- a/src/jcanvas.d.ts +++ b/src/jcanvas.d.ts @@ -4,7 +4,10 @@ * Released under the MIT license */ -declare module "jcanvas"; +declare module "jcanvas" { + let jCanvas: JCanvas; + export = jCanvas; +} declare module "jcanvas/dist/umd/jcanvas.min.js"; declare module "jcanvas/dist/umd/jcanvas-crescents.min.js"; declare module "jcanvas/dist/umd/jcanvas-donuts.min.js"; diff --git a/src/jcanvas.ts b/src/jcanvas.ts index 5e4054e..cf8c68e 100644 --- a/src/jcanvas.ts +++ b/src/jcanvas.ts @@ -4612,3 +4612,5 @@ extendObject(jCanvas, { }); $.jCanvas = jCanvas; $.jCanvasObject = jCanvasObject; + +export default jCanvas;