You've already forked bilibili-subtitle
17 lines
315 B
TypeScript
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'
|