From 8909a8d5f6ee4d5f582e97c985bcfc96f0eef02c Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 16 Aug 2025 16:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20BaseApi=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=87=BD=E6=95=B8=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/BaseApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/BaseApi.ts b/src/api/BaseApi.ts index 4ec0e15..6a36ab0 100644 --- a/src/api/BaseApi.ts +++ b/src/api/BaseApi.ts @@ -3,9 +3,9 @@ import UnknownFunction from '../types/UnknownFunction.ts' export default abstract class BaseApi { abstract getName(): string constructor() { - this.init() + this.onInit() } - abstract init(): void + abstract onInit(): void registerEvent(name: string, func: UnknownFunction) { }