UNPKG

muschema

Version:
16 lines (15 loc) 574 B
import { MuSchema } from './schema'; import { MuReadStream, MuWriteStream } from 'mustreams'; export declare class MuString implements MuSchema<string> { readonly identity: string; readonly muType: string; readonly json: object; constructor(identity?: string); alloc(): string; free(_: string): void; equal(x: string, y: string): boolean; clone(x: string): string; copy(source: string, target: string): void; diff(base: string, target: string, stream: MuWriteStream): boolean; patch(base: string, stream: MuReadStream): string; }