pure-parse
Version:
Strongly typed validation library that decouples type aliases from validation logic
9 lines (8 loc) • 326 B
TypeScript
import { Guard } from './Guard';
import { JsonValue } from '../common';
/**
* Checks if the given data is a valid JSON value.
* Only plain JSON values are allowed. For example, `Date`, `Map`, `Set`, and custom class instances are not valid JSON values.
* @param data
*/
export declare const isJsonValue: Guard<JsonValue>;