Skip to content

methodsOf

@tsed/core

Usage ​

typescript
import { methodsOf } from "@tsed/core";

See /packages/core/src/utils/methodsOf.ts.

Overview ​

ts
function methodsOf(target: any): {
    target: Type;
    propertyKey: string;
}[];

Description ​

Returns all methods for a given class by traversing its prototype chain.

target ​

ts
target: Type;

propertyKey ​

ts
propertyKey: string;

Released under the MIT License.