glitchkit
Version:
A lightweight toolkit to create and manage expressive, structured, and reusable error types. Perfect for APIs, services, and glitchy adventures
11 lines (10 loc) • 475 B
TypeScript
import GlitchKitBaseValidationError from '../baseGlitchKit/GlitchKitBaseValidationError';
declare class GlitchKitSchemaValidationError extends GlitchKitBaseValidationError<object> {
private _schema?;
constructor(message: string, errorCode?: number);
get schema(): object | undefined;
set schema(schema: object | undefined);
withSchema(schema: object): this;
static isInstance(error: unknown): boolean;
}
export default GlitchKitSchemaValidationError;