tupleson
Version:
A hackable JSON serializer/deserializer
21 lines (18 loc) • 599 B
text/typescript
import { TsonError } from '../../errors.mjs';
import { TsonType } from '../syncTypes.mjs';
declare class TsonUnknownObjectGuardError extends TsonError {
/**
* The unknown object that was found
*/
readonly value: unknown;
constructor(value: unknown);
}
/**
*
* @description
* Guard against unknown complex objects.
* Make sure to define this last in the list of types.
* @throws {TsonUnknownObjectGuardError} if an unknown object is found
*/
declare const tsonUnknownObjectGuard: TsonType<unknown, never>;
export { TsonUnknownObjectGuardError, tsonUnknownObjectGuard };