Skip to content

Commit

Permalink
Added the export
Browse files Browse the repository at this point in the history
Updated to esnext module
  • Loading branch information
StefanoBalocco committed Apr 6, 2024
1 parent e3143d3 commit 15ee8c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
6 changes: 1 addition & 5 deletions myopie.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
interface NodeWithChilds {
childNodes: NodeListOf<ChildNode>;
appendChild(node: ChildNode): void;
}
declare class myopie {
export declare class myopie {
private readonly selector;
private readonly template;
private readonly timeout;
Expand Down
3 changes: 1 addition & 2 deletions myopie.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use strict";
class myopie {
export class myopie {
static Create(selector, template, initialData = {}, inputToPath = [], timeout = 1000) {
return new myopie(selector, template, initialData, inputToPath, timeout);
}
Expand Down
2 changes: 1 addition & 1 deletion myopie.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions myopie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
* Partially rip from https://github.com/cferdinandi/reef/
*/

interface NodeWithChilds {
childNodes: NodeListOf<ChildNode>,

appendChild( node: ChildNode ): void;
}

class myopie {
export class myopie {
private readonly selector: string;
private readonly template: ( data: any ) => string;
private readonly timeout: number = 0;
Expand Down Expand Up @@ -336,4 +330,4 @@ class myopie {
}
}
}
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2021",
"module": "commonjs",
"module": "esnext",
"declaration": true,
"removeComments": true,
"strict": true,
Expand Down

0 comments on commit 15ee8c4

Please sign in to comment.