Keymaps as a clean architecture [WIP]

This commit is contained in:
Shin'ya Ueoka 2019-05-11 19:43:56 +09:00
parent a88324acd9
commit efc48dc742
15 changed files with 620 additions and 88 deletions

View file

@ -0,0 +1,11 @@
import * as operations from '../../shared/operations';
import * as messages from '../../shared/messages';
export default class BackgroundClient {
execBackgroundOp(op: operations.Operation): Promise<void> {
return browser.runtime.sendMessage({
type: messages.BACKGROUND_OPERATION,
operation: op,
});
}
}