Skip to content

Commit

Permalink
🤖 dprint fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Mar 22, 2024
1 parent 1abb6a1 commit be9af00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions types/eventbusjs/eventbusjs-tests.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Type definitions for eventbusjs 0.2.0
// Project: https://github.com/krasimir/EventBus

import * as EventBus from "eventbusjs"
import * as EventBus from "eventbusjs";

function myFunction() { };
EventBus.addEventListener('my_function_event', myFunction);
let isEvent: boolean = EventBus.hasEventListener('my_function_event', myFunction);
function myFunction() {}
EventBus.addEventListener("my_function_event", myFunction);
let isEvent: boolean = EventBus.hasEventListener("my_function_event", myFunction);
let events: string = EventBus.getEvents();
EventBus.dispatch('my_function_event');
EventBus.removeEventListener('my_function_event', myFunction);
EventBus.dispatch("my_function_event");
EventBus.removeEventListener("my_function_event", myFunction);
2 changes: 1 addition & 1 deletion types/eventbusjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export function dispatch(type: string, target?: object, arg?: string, arg2?: str

export function getEvents(): string;

export as namespace EventBus;
export as namespace EventBus;
2 changes: 1 addition & 1 deletion types/eventbusjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"githubUsername": "Longqin88888"
}
]
}
}

0 comments on commit be9af00

Please sign in to comment.