MCPcopy Create free account
hub / github.com/axe-api/axe-api / Event

Class Event

packages/axe-api/src/Steps/Event.ts:5–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { PhaseFunction } from "src/Types";
4
5class Event implements IStepDefinition {
6 private hookFunctionType: HookFunctionTypes;
7
8 constructor(hookFunctionType: HookFunctionTypes) {
9 this.hookFunctionType = hookFunctionType;
10 }
11
12 get(model: IModelService): PhaseFunction {
13 return model.events[this.hookFunctionType];
14 }
15
16 get name() {
17 return `event:${this.hookFunctionType}`;
18 }
19
20 isAsync() {
21 return false;
22 }
23}
24
25export default Event;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected