juniper
Version:
ESM JSON Schema builder for static Typescript inference.
49 lines • 1.38 kB
TypeScript
import { AbstractSchema, type SchemaGenerics, type SchemaParams, type SerializationParams } from '../lib/schema.js';
import type { JsonSchema, SchemaType } from '../lib/types.js';
/**
* Schema for defining null literal.
*/
export declare class NullSchema extends AbstractSchema<SchemaGenerics<null>> {
protected readonly schemaType = "null";
/**
* Not applicable.
*/
allOf: never;
/**
* Not applicable.
*/
anyOf: never;
/**
* Not enough possible states.
*/
if: never;
/**
* Not enough possible states.
*/
not: never;
/**
* Already nullable.
*/
nullable: never;
/**
* Not applicable.
*/
oneOf: never;
/**
* Create a new instance of NullSchema.
*
* @param [options] - optional
* @param [options.title] - Add title to schema
* @param [options.description] - Add description to schema
* @param [options.deprecated] - flag schema as deprecated
* @param [options.readOnly] - value should not be modified
* @param [options.writeOnly] - value should be hidden
* @returns new null schema
*/
static create(this: void, options?: SchemaParams<null>): NullSchema;
/**
* @override
*/
protected toSchema(params: SerializationParams): JsonSchema<SchemaType<this>>;
}
//# sourceMappingURL=null.d.ts.map