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
12 lines
780 B
Plaintext
12 lines
780 B
Plaintext
import { TypeBoxError } from '../../type/error/index.mjs';
|
|
import type { TSchema } from '../../type/schema/index.mjs';
|
|
import type { Static } from '../../type/static/index.mjs';
|
|
export declare class ValueCastError extends TypeBoxError {
|
|
readonly schema: TSchema;
|
|
constructor(schema: TSchema, message: string);
|
|
}
|
|
/** Casts a value into a given type and references. The return value will retain as much information of the original value as possible. */
|
|
export declare function Cast<T extends TSchema>(schema: T, references: TSchema[], value: unknown): Static<T>;
|
|
/** Casts a value into a given type. The return value will retain as much information of the original value as possible. */
|
|
export declare function Cast<T extends TSchema>(schema: T, value: unknown): Static<T>;
|