UNPKG

452 BTypeScriptView Raw
1/**
2 * An entry in the construct metadata table.
3 */
4export interface MetadataEntry {
5 /**
6 * The metadata entry type.
7 */
8 readonly type: string;
9 /**
10 * The data.
11 */
12 readonly data: any;
13 /**
14 * Stack trace at the point of adding the metadata.
15 *
16 * Only available if `addMetadata()` is called with `stackTrace: true`.
17 *
18 * @default - no trace information
19 */
20 readonly trace?: string[];
21}