| 614 | * Options for `construct.addMetadata()`. |
| 615 | */ |
| 616 | export interface MetadataOptions { |
| 617 | /** |
| 618 | * Include stack trace with metadata entry. |
| 619 | * @default false |
| 620 | */ |
| 621 | readonly stackTrace?: boolean; |
| 622 | |
| 623 | /** |
| 624 | * A JavaScript function to begin tracing from. |
| 625 | * |
| 626 | * This option is ignored unless `stackTrace` is `true`. |
| 627 | * |
| 628 | * @default addMetadata() |
| 629 | */ |
| 630 | readonly traceFromFunction?: any; |
| 631 | |
| 632 | /** |
| 633 | * The actual stack trace to be added to the metadata. If this |
| 634 | * parameter is passed, the stackTrace parameter is ignored. |
| 635 | */ |
| 636 | readonly stackTraceOverride?: string[]; |
| 637 | } |
| 638 | |
| 639 | // Mark all instances of 'Construct' |
| 640 | Object.defineProperty(Construct.prototype, CONSTRUCT_SYM, { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…