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();
}