UNPKG

glitchkit

Version:

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

26 lines (25 loc) 837 B
import IGlitchKitMetadataJson from './interfaces/GlitchKitMetadata.interface'; export declare class GlitchKitMetadata { private _info; private _context; private _tags; private _category; private _cause; get info(): Object | undefined; set info(data: Object); withInfo(data: Object): this; get context(): Object | undefined; set context(ctx: Object); withContext(ctx: Object): this; get tags(): string[]; set tags(tags: string[]); withTags(tags: string[]): this; get category(): string | undefined; set category(category: string | undefined); withCategory(category: string): this; get cause(): string | undefined; set cause(cause: string | undefined); withCause(cause: string): this; toJson(): IGlitchKitMetadataJson; } export default GlitchKitMetadata;