Skip to content

API reference / @chanx-js/server / core / handlerMethods

Function: handlerMethods() ​

ts
function handlerMethods(target): HandlerMethodInfo[];

Defined in: packages/server/src/classes.ts:206

A class's @On and @OnEvent methods, walking its prototype chain: an override, decorated or not, hides the method it overrides, and two methods handling one action are an error. For framework integrations such as NestJS.

Parameters ​

ParameterType
target(...args) => unknown

Returns ​

HandlerMethodInfo[]

MIT licensed