Skip to content

Commit

Permalink
fix: ajusta lib
Browse files Browse the repository at this point in the history
  • Loading branch information
drusco committed Aug 20, 2023
1 parent 5abc2ec commit 3d29ed0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"jest": "^29.6.1",
"prettier": "^3.0.0",
"typescript": "^5.1.6"
},
"dependencies": {
"events": "^3.3.0"
}
}
8 changes: 1 addition & 7 deletions src/Emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import lib from "./lib/index.js";
import Exotic from "./types/Exotic.js";
import EventEmitter from "events";

class Emulator extends EventEmitter implements Exotic.Emulator {
export default class Emulator extends EventEmitter implements Exotic.Emulator {
constructor(options?: Exotic.emulator.options) {
super();
lib.constructor(this, options);
Expand Down Expand Up @@ -56,10 +56,6 @@ class Emulator extends EventEmitter implements Exotic.Emulator {
return lib.methods.isRevoked(value);
}

[Symbol.iterator](): IterableIterator<Exotic.Proxy> {
return lib.methods.entries();
}

entries(): IterableIterator<Exotic.Proxy> {
return lib.methods.entries();
}
Expand All @@ -84,5 +80,3 @@ class Emulator extends EventEmitter implements Exotic.Emulator {
return lib.methods.include(this, origin, target);
}
}

export default Emulator;
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import Emulator from "./Emulator.js";
export default Emulator;
export { default } from "./Emulator.js";
1 change: 0 additions & 1 deletion src/types/Exotic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ declare namespace Exotic {
active: number;
revoked: number;
length: number;
[Symbol.iterator](): IterableIterator<Proxy>;
}

namespace emulator {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"declaration": false,
"sourceMap": false,
"declaration": true,
"sourceMap": true,
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "src/**/*.spec.ts"]
Expand Down

0 comments on commit 3d29ed0

Please sign in to comment.