You've already forked bilibili-subtitle
优化
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 请求信息
|
||||
export type L2ReqMsg = {
|
||||
from: 'extension' | 'inject' | 'app'
|
||||
target: string
|
||||
method: string
|
||||
params?: any
|
||||
// [key: string]: any
|
||||
}
|
||||
|
||||
// 响应信息
|
||||
export type L2ResMsg<L2Res = any> = {
|
||||
code: number
|
||||
message?: string
|
||||
data?: L2Res
|
||||
}
|
||||
|
||||
export const MESSAGE_TO_EXTENSION_ROUTE_MSG = 'routeMsg'
|
||||
|
Reference in New Issue
Block a user