Files
NapCatQQ/.pnpm-store/v3/files/54/929fff8a2f05b578aca48e6ce037ffbdef12e9ebb45f9f19ada8db9f0ac4347b40bb323c83ed6025c9f6e029c7629902d862b9cfc56ccdb2b7bd34b3550506
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

16 lines
893 B
Plaintext

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