Skip to content

Commit

Permalink
Export jCanvas object from core module
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 31, 2024
1 parent 6848502 commit df88a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jcanvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4612,3 +4612,5 @@ extendObject(jCanvas, {
});
$.jCanvas = jCanvas;
$.jCanvasObject = jCanvasObject;

export default jCanvas;

0 comments on commit df88a94

Please sign in to comment.