UNPKG

muschema

Version:
19 lines (18 loc) 1.16 kB
import { MuWriteStream, MuReadStream } from 'mustreams'; import { MuSchema } from './schema'; export declare class MuSortedArray<ValueSchema extends MuSchema<any>> implements MuSchema<ValueSchema['identity'][]> { readonly identity: ValueSchema['identity'][]; readonly muType: string; readonly muData: ValueSchema; readonly json: object; readonly compare: (a: ValueSchema['identity'], b: ValueSchema['identity']) => number; pool: ValueSchema['identity'][][]; constructor(schema: ValueSchema, compare?: (a: ValueSchema['identity'], b: ValueSchema['identity']) => number, identity?: ValueSchema['identity'][]); alloc(): ValueSchema['identity'][]; free(set: ValueSchema['identity'][]): void; equal(x: ValueSchema['identity'][], y: ValueSchema['identity'][]): boolean; clone(set: ValueSchema['identity'][]): ValueSchema['identity'][]; copy(source: ValueSchema['identity'][], target: ValueSchema['identity'][]): void; diff(base: ValueSchema['identity'][], target: ValueSchema['identity'][], out: MuWriteStream): boolean; patch(base: ValueSchema['identity'][], inp: MuReadStream): ValueSchema['identity'][]; }