21 lines
460 B
TypeScript
21 lines
460 B
TypeScript
/**
|
|
* Creates an array of property names from an object where the property values are functions.
|
|
*
|
|
* @param {any} object - The object to inspect.
|
|
* @returns {string[]} - An array of function property names.
|
|
*
|
|
* @example
|
|
* function Foo() {
|
|
* this.a = () => 'a';
|
|
* this.b = () => 'b';
|
|
* }
|
|
*
|
|
* Foo.prototype.c = () => 'c';
|
|
*
|
|
* functions(new Foo);
|
|
* // => ['a', 'b']
|
|
*/
|
|
declare function functions(object: any): string[];
|
|
|
|
export { functions };
|