Files
bilibili-subtitle/src/messaging/const.ts
IndieKKY 5ba2b9fd6d 优化
2024-10-06 19:22:01 +08:00

17 lines
315 B
TypeScript

// 请求信息
export type L2ReqMsg = {
from: 'extension' | 'inject' | 'app'
method: string
params?: any
}
// 响应信息
export type L2ResMsg<L2Res = any> = {
code: number
msg?: string
data?: L2Res
}
export const TAG_TARGET_INJECT = 'target:inject'
export const TAG_TARGET_APP = 'target:app'