I cannot for my life figure out how to invoke api methods like Assets.
The typings for Assets declare it to live in “meteor/tools” but that package doesn’t seem to exist so that was a no go and I also couldn’t figure out how to write my own index.d.ts file to make Assets methods available.
I could not get that to work - for some reason the Assets variable is not accessible for typescript code - when running the code it comes up as undefined also when accessing it in the js console.
This is what I tried (and failed)
declare module "meteor/meteor" {
import * as tools from "meteor/tools";
export var Assets: typeof tools.Assets;
}