Files
NapCatQQ/.pnpm-store/v3/files/89/49da1f0d5d252703ee8f18e5662378d1978f6acf6b49ba107bd7eca1dfbbbfb468898fa355a9ba5bd9756dc099246ef1f754d6b12dfd9956b38b3d2ac50f83
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
1.0 KiB
Plaintext

import { TypeBoxError } from '../../type/error/index.mjs';
import { ValueError } from '../../errors/index.mjs';
import type { TSchema } from '../../type/schema/index.mjs';
export declare class TransformDecodeCheckError extends TypeBoxError {
readonly schema: TSchema;
readonly value: unknown;
readonly error: ValueError;
constructor(schema: TSchema, value: unknown, error: ValueError);
}
export declare class TransformDecodeError extends TypeBoxError {
readonly schema: TSchema;
readonly path: string;
readonly value: unknown;
readonly error: Error;
constructor(schema: TSchema, path: string, value: unknown, error: Error);
}
/**
* `[Internal]` Decodes the value and returns the result. This function requires that
* the caller `Check` the value before use. Passing unchecked values may result in
* undefined behavior. Refer to the `Value.Decode()` for implementation details.
*/
export declare function TransformDecode(schema: TSchema, references: TSchema[], value: unknown): unknown;