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

16 lines
877 B
Plaintext

import { ValueErrorIterator, ValueError } from '../../errors/index';
import { TypeBoxError } from '../../type/error/error';
import { TSchema } from '../../type/schema/index';
import { Static } from '../../type/static/index';
export declare class AssertError extends TypeBoxError {
#private;
error: ValueError | undefined;
constructor(iterator: ValueErrorIterator);
/** Returns an iterator for each error in this value. */
Errors(): ValueErrorIterator;
}
/** Asserts a value matches the given type or throws an `AssertError` if invalid */
export declare function Assert<T extends TSchema>(schema: T, references: TSchema[], value: unknown): asserts value is Static<T>;
/** Asserts a value matches the given type or throws an `AssertError` if invalid */
export declare function Assert<T extends TSchema>(schema: T, value: unknown): asserts value is Static<T>;