Extract method names from a class.
A class or object type
Returns a union of all callable method names of the class. Does not include readonly or non-function properties.
class Service { getData() {} setData() {} value = 123; }type Methods = MethodNames< Service >; // "getData" | "setData" Copy
class Service { getData() {} setData() {} value = 123; }type Methods = MethodNames< Service >; // "getData" | "setData"
Extract method names from a class.