@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
30 lines (29 loc) • 777 B
TypeScript
export interface Options {
definition: string;
typescript: string;
json: boolean;
jsonSpace: string | number;
}
export declare class ResJsonConverter {
private options;
private static openContent;
private static closeContent;
outputJson: any;
private outputDefinition;
private outputTypescript;
private outputInterface;
private jsonCurrent;
private root;
constructor(options: Options);
get contentDefinition(): string;
get contentTypescript(): string;
get contentInterface(): string;
contentReset(): void;
convert(content: string, validate: boolean): void;
private buildObject;
private skipComment;
private jsonNewValue;
private jsonAddValue;
private scan;
private traverse;
}