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

24 lines
1.0 KiB
Plaintext

import { TypeBoxError } from '../../type/error/index';
import { ValueError } from '../../errors/index';
import type { TSchema } from '../../type/schema/index';
export declare class TransformEncodeCheckError extends TypeBoxError {
readonly schema: TSchema;
readonly value: unknown;
readonly error: ValueError;
constructor(schema: TSchema, value: unknown, error: ValueError);
}
export declare class TransformEncodeError extends TypeBoxError {
readonly schema: TSchema;
readonly path: string;
readonly value: unknown;
readonly error: Error;
constructor(schema: TSchema, path: string, value: unknown, error: Error);
}
/**
* `[Internal]` Encodes the value and returns the result. This function expects the
* caller to pass a statically checked value. This function does not check the encoded
* result, meaning the result should be passed to `Check` before use. Refer to the
* `Value.Encode()` function for implementation details.
*/
export declare function TransformEncode(schema: TSchema, references: TSchema[], value: unknown): unknown;