diff --git a/types/eventbusjs/eventbusjs-tests.ts b/types/eventbusjs/eventbusjs-tests.ts index 312b675d29f9c8..a21f94d6c97544 100644 --- a/types/eventbusjs/eventbusjs-tests.ts +++ b/types/eventbusjs/eventbusjs-tests.ts @@ -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); \ No newline at end of file +EventBus.dispatch("my_function_event"); +EventBus.removeEventListener("my_function_event", myFunction); diff --git a/types/eventbusjs/index.d.ts b/types/eventbusjs/index.d.ts index 012300268a93c3..2d1a9807be7fe1 100644 --- a/types/eventbusjs/index.d.ts +++ b/types/eventbusjs/index.d.ts @@ -13,4 +13,4 @@ export function dispatch(type: string, target?: object, arg?: string, arg2?: str export function getEvents(): string; -export as namespace EventBus; \ No newline at end of file +export as namespace EventBus; diff --git a/types/eventbusjs/package.json b/types/eventbusjs/package.json index cb5dc448a0c196..3142283fb3d56e 100644 --- a/types/eventbusjs/package.json +++ b/types/eventbusjs/package.json @@ -14,4 +14,4 @@ "githubUsername": "Longqin88888" } ] -} \ No newline at end of file +}