Files
NapCatQQ/.pnpm-store/v3/files/6e/d473190b8211f7170c457cddf276eed1f449ebf9ba847373350eb8f4ca919fd4076bb33a5f54201b758acb955b72cf213f88d09f740241a37711e5ca099395
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
1.1 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 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;