-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexecutionFunction.model.ts
More file actions
28 lines (22 loc) · 897 Bytes
/
executionFunction.model.ts
File metadata and controls
28 lines (22 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Metadata extracted from a function or a method.
*
* - If the function is a method of a class, `class` represents the class name, and `method` represents the method name.
* - Otherwise, these properties are undefined.
*/
export interface FunctionMetadata {
/** If the function is a class method, this represents the class name. */
class?: string;
/** If the function is a class method, this represents the method name. */
method?: string | symbol;
/** The full method signature, including parameters, if available. */
methodSignature?: string;
/** The function name, or "anonymous" if unnamed. */
name: string;
/** List of parameter names extracted from the function definition. */
parameters: string[];
/** Indicates if the function is asynchronous. */
isAsync: boolean;
/** Whether the function is bound to a specific context. */
isBound: boolean;
}