{"size": 725, "ext": "js", "max_stars_repo_path": "dist/helpers/createInstance.js", "max_stars_repo_name": "hnoh/forge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/helpers/createInstance.js", "max_issues_repo_name": "hnoh/forge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/helpers/createInstance.js", "max_forks_repo_name": "hnoh/forge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0, "max_line_length": 62, "alphanum_fraction": 0.6413793103}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createInstance(param) {
    const type = typeof param;
    if (type === 'function') {
        return createExpr(param);
    }
    else {
        return createExpr(() => param);
    }
}
exports.createInstance = createInstance;
function createExpr(expr) {
    let instance = {};
    let result;
    if (typeof expr === 'function') {
        result = expr(instance);
    }
    else {
        instance = expr;
    }
    return result === undefined ? instance : result;
}
exports.createExpr = createExpr;
function retrieveInstance(param) {
    // todo201
}
exports.retrieveInstance = retrieveInstance;
//# sourceMappingURL=createInstance.js.map