function getJSType(cppType: string) {
    let typeMap = new Map<string, string>([
        ["Bool", "boolean"],
        ["Int32", "number"],
        ["UInt32", "number"],
        ["Int64", "number"],
        ["UInt64", "number"],
        ["Double", "number"],
        ["String", "string"],
        ["Object", "any"]
    ]);

    if (typeMap.get(cppType) === undefined) {
        console.error("Invalid type in getJavascriptType: " + cppType);
        process.exit(1);
    }
    return typeMap.get(cppType);
}
By Anonymous, 2017-12-15 11:58:04