mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-24 00:40:05 +08:00
refactor: type definition for ActionMap
This commit is contained in:
parent
ea4d1d3275
commit
28930fdad4
@ -77,7 +77,9 @@ import { NapCatCore } from '@/core';
|
||||
|
||||
import { NapCatOneBot11Adapter } from '@/onebot';
|
||||
|
||||
export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContext: NapCatCore) {
|
||||
export type ActionMap = Map<string, BaseAction<any, any>>;
|
||||
|
||||
export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContext: NapCatCore): ActionMap {
|
||||
const actionHandlers = [
|
||||
new FetchEmojiLike(onebotContext, coreContext),
|
||||
new GetFile(onebotContext, coreContext),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user