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

Function isMiddlewareFunction

packages/axe-api/src/Services/ConverterService.ts:46–48  ·  view source on GitHub ↗
(callback: any)

Source from the content-addressed store, hash-verified

44};
45
46export const isMiddlewareFunction = (callback: any): boolean => {
47 return callback.length === 3;
48};
49
50export const isHandlerFunction = (callback: any): boolean => {
51 return callback.length === 2;

Callers 2

addHandlerMethod · 0.90
toPhaseFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected