You've already forked bilibili-subtitle
重构消息通信
This commit is contained in:
20
src/typings.d.ts
vendored
20
src/typings.d.ts
vendored
@@ -1,3 +1,23 @@
|
||||
|
||||
interface MessageData {
|
||||
target: string
|
||||
method: string
|
||||
params?: any
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
interface MessageResult {
|
||||
success: boolean
|
||||
code: number
|
||||
message?: string
|
||||
data?: any
|
||||
}
|
||||
|
||||
interface MethodContext {
|
||||
event: any
|
||||
sender?: chrome.runtime.MessageSender | null
|
||||
}
|
||||
|
||||
interface EnvData {
|
||||
autoExpand?: boolean
|
||||
flagDot?: boolean
|
||||
|
Reference in New Issue
Block a user