Adds @xuqm/h5-sdk/private entry point with JSON-based initialization, feature gating, and error codes for private deployment scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 行
826 B
TypeScript
14 行
826 B
TypeScript
import type { KeywordErrorCxt, KeywordErrorDefinition } from "../types";
|
|
import { CodeGen, Code, Name } from "./codegen";
|
|
export declare const keywordError: KeywordErrorDefinition;
|
|
export declare const keyword$DataError: KeywordErrorDefinition;
|
|
export interface ErrorPaths {
|
|
instancePath?: Code;
|
|
schemaPath?: string;
|
|
parentSchema?: boolean;
|
|
}
|
|
export declare function reportError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths, overrideAllErrors?: boolean): void;
|
|
export declare function reportExtraError(cxt: KeywordErrorCxt, error?: KeywordErrorDefinition, errorPaths?: ErrorPaths): void;
|
|
export declare function resetErrorsCount(gen: CodeGen, errsCount: Name): void;
|
|
export declare function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }: KeywordErrorCxt): void;
|