UNPKG

glitchkit

Version:

A lightweight toolkit to create and manage expressive, structured, and reusable error types. Perfect for APIs, services, and glitchy adventures

22 lines (21 loc) 774 B
import IGlitchKitTraceabilityJson from './interfaces/GlitchKitTraceability.interface'; declare class GlitchKitTraceability { private _traceId?; private _operation?; private _reported?; private _source?; get traceId(): string | undefined; set traceId(id: string | undefined); withTraceId(id: string): this; get operation(): string | undefined; set operation(op: string | undefined); withOperation(op: string): this; get reported(): boolean | undefined; set reported(val: boolean | undefined); withReported(val: boolean): this; get source(): string | undefined; set source(src: string | undefined); withSource(src: string): this; toJson(): IGlitchKitTraceabilityJson; } export default GlitchKitTraceability;