@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
14 lines (13 loc) • 602 B
TypeScript
import * as schema from '../../schema';
import type { SchemaOf, Type } from '../types';
import { AbsType } from './AbsType';
export declare class BinType<T extends Type = any> extends AbsType<schema.BinSchema> {
protected type: T;
constructor(type: T, options?: schema.Optional<schema.BinSchema>);
format(format: schema.BinSchema['format']): this;
min(min: schema.BinSchema['min']): this;
max(max: schema.BinSchema['max']): this;
getSchema(): schema.BinSchema<SchemaOf<T>>;
getOptions(): schema.Optional<schema.ArrSchema<SchemaOf<T>>>;
toString(tab?: string): string;
}