본문으로 건너뛰기

withClassMethods

withClassMethods(methods: readonly string[]): ((prototype: any, memberName: string) => void)

Parameters

methods

readonly string[]

Description

Sets the name of the class method to be exposed to the outside.

Returns

Property Decorator

Example
import { withClassMethods } from "@cfcs/core";

class YourFrameworkComponent {
@withClassMethod(METHOD_NAMES)
inst = new YourComponent();
}