| 12345678910111213141516171819202122 |
- import { DataProviderArgs } from '~/types/interfaces'
- import Hookable from "~/services/data/hookable";
- abstract class BaseHook {
- public static priority = 255
- protected parent: Hookable;
- constructor(parent: Hookable) {
- this.parent = parent
- }
- // eslint-disable-next-line require-await
- async invoke (_args: DataProviderArgs): Promise<any> {
- throw new Error('Not implemented')
- }
- static support (_args: DataProviderArgs): boolean {
- throw new Error('Not implemented')
- }
- }
- export default BaseHook
|