chore: apply rename: types -> typedef

This commit is contained in:
CrescentLeaf
2025-09-06 16:37:53 +08:00
parent 7c616a2dac
commit 7553c5b281
4 changed files with 12 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import EventCallbackFunction from "../types/EventCallbackFunction.ts"
import EventCallbackFunction from "../typedef/EventCallbackFunction.ts"
import ApiManager from "./ApiManager.ts"
import { CallMethod } from './ApiDeclare.ts'
@@ -8,7 +8,7 @@ export default abstract class BaseApi {
this.onInit()
}
abstract onInit(): void
checkArgsMissing(args: {}, names: []) {
checkArgsMissing(args: { [key: string]: unknown }, names: []) {
for (const k of names)
if (!(k in args))
return true