@yellicode/elements
Version:
The meta model API for Yellicode - an extensible code generator.
17 lines (16 loc) • 818 B
TypeScript
import { Model, Document } from '../interfaces';
import { TypeResolver } from '../type-resolver';
export declare class ModelSerializer {
/**
* A custom replacer function that is used as a replacer callback using JSON.stringify.
* @param this The object in which the key was found.
* @param key The key being stringified.
* @param value The value being stringified.
*/
private static replacer;
static serializeModel(model: Model): string;
static serializeDocument(document: Document): string;
static deserializeModel(text: string, applySorting: boolean, customTypeResolver?: TypeResolver): Model;
private static deserializeModelInternal;
static deserializeDocument(text: string, applySorting: boolean, customTypeResolver?: TypeResolver): Document;
}