@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
13 lines (12 loc) • 605 B
TypeScript
import type * as schema from '../../schema';
import { AbsType } from './AbsType';
import type { TypeSystem } from '../../system/TypeSystem';
import type { json_string } from '@jsonjoy.com/util/lib/json-brand';
export declare class StrType extends AbsType<schema.StringSchema> {
protected schema: schema.StringSchema;
constructor(schema: schema.StringSchema);
format(format: schema.StringSchema['format']): this;
min(min: schema.StringSchema['min']): this;
max(max: schema.StringSchema['max']): this;
toJson(value: unknown, system?: TypeSystem | undefined): json_string<unknown>;
}