wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/lib/wikibase-tainted-ref/src/HookHandler.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Store } from 'vuex';
import Application from '@/store/Application';

export interface HookHandler {
    /**
     * Adds a Store to the HookHandler. Actions from this Store will then be triggered as the hooks are handled.
     * This implies that implementations of the HookHandler provide their own way to ingest hooks (e.g. via their
     * constructor or some internal logic)
     *
     * @param store
     */
    addStore( store: Store<Application> ): void;
}