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

23 lines
1014 B
Plaintext

import { TypeBoxError } from '../../type/error/index';
import { ValueError } from '../../errors/index';
import type { TSchema } from '../../type/schema/index';
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;