From be9af00ee708c952d35532e8c0099a66acb16675 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Fri, 22 Mar 2024 01:23:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20dprint=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/eventbusjs/eventbusjs-tests.ts | 12 ++++++------ types/eventbusjs/index.d.ts | 2 +- types/eventbusjs/package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) 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 +}