From df88a94d539c5c9b4bdcb038a28449e26c46e9ed Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Fri, 31 May 2024 13:52:02 -0700 Subject: [PATCH] Export jCanvas object from core module --- src/jcanvas.d.ts | 5 ++++- src/jcanvas.ts | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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;