let result = tsTypeInfo.getInfoFromFiles([filePath], {});
// get json scheme
let resultJson = result.toJSON();
// cache the scheme
someStorage.set('tsTypeInfoData', resultJson);
// next use
let resultJson = someStorage.get('tsTypeInfoData');
let result = tsTypeInfo.getInfoFromJsonScheme(resultJson);
I've been wondering about this. I'll look into it. I believe I will be able to generate the code for this using this: https://github.com/dsherret/ts-object-create (but it will probably need an improvement)
What about data caching?
example: