UNPKG

@jsonjoy.com/json-type

Version:

High-performance JSON Pointer implementation

13 lines (12 loc) 633 B
import * as schema from '../../schema'; import type { SchemaOf, Type } from '../types'; import { AbsType } from './AbsType'; import type { TypeExportContext } from './ModuleType/TypeExportContext'; export declare class MapType<T extends Type = any> extends AbsType<schema.MapSchema<SchemaOf<T>>> { readonly _value: T; readonly _key?: Type | undefined; constructor(_value: T, _key?: Type | undefined, options?: schema.Optional<schema.MapSchema>); getSchema(ctx?: TypeExportContext): schema.MapSchema<SchemaOf<T>>; getOptions(): schema.Optional<schema.MapSchema<SchemaOf<T>>>; toString(tab?: string): string; }