@sdesktop/s
Version:
Serverless devs tool, just for desktop.
25 lines (24 loc) • 816 B
TypeScript
interface MAP_OBJECT {
[key: string]: any;
}
export declare class Parse {
protected path: string;
protected parsedObj: any;
dependenciesMap: {
[key: string]: any;
};
globalJsonKeyMap: any;
protected globalKeyArr: any[];
protected magicVariablesArray: any[];
constructor(path: string);
getFileObj(filePath: string): {};
init(filePath: string): Promise<void>;
getOriginalParsedObj(): any;
private findVariableValue;
generateMagicVariables(value: any, arr?: any[], parentStr?: string): any[];
isProjectProperties(topKey: string, parentKey: any): boolean;
iteratorToSetValue(objValue: any, topKey: string, parentKey?: any): any;
replaceVariable(variable: any | MAP_OBJECT): any;
getRealVariables(parsedObj: any): Promise<any>;
}
export {};