Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
avidianity committed Aug 15, 2021
1 parent 6270395 commit 7bd9bf7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "@avidian/events",
"version": "1.0.0",
"version": "1.0.1",
"description": "A pub/sub library for handling events.",
"main": "lib/index.js",
"repository": "https://github.com/avidianity/events",
"repository": {
"type": "git",
"url": "https://github.com/avidianity/events.git"
},
"author": "John Michael Manlupig",
"types": "types/index.d.ts",
"publishConfig": {
"access": "public"
},
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { Manager } from './Manager';
export { Manager as default } from './Manager';
1 change: 1 addition & 0 deletions types/Manager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export declare class Manager {
getObservers(): Observers;
on<T = any>(key: string, callback: (value: T) => void): Key;
off(key: Key): void;
clear(): this;
listen<T = any>(key: string, callback: (value: T) => void): Key;
unlisten(key: Key): void;
dispatch(name: string, value?: any): this;
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { Manager } from './Manager';
export { Manager as default } from './Manager';

0 comments on commit 7bd9bf7

Please sign in to comment.