baseHook.ts 382 B

12345678910111213141516
  1. import { DataProviderArgs } from '~/types/interfaces'
  2. abstract class BaseHook {
  3. public static priority = 255
  4. // eslint-disable-next-line require-await
  5. async invoke (_args: DataProviderArgs): Promise<any> {
  6. throw new Error('Not implemented')
  7. }
  8. static support (_args: DataProviderArgs): boolean {
  9. throw new Error('Not implemented')
  10. }
  11. }
  12. export default BaseHook