Help with meteorhacks:aggregate package

I’ve installed the meteorhacks: aggregate package in my Meteor Angular2 environment.

However I get the following error running this test code in my publications file:

    var test = new Mongo.Collection('test');

Typescript throws an error that “[ts] Property ‘aggregate’ does not exist on type ‘Collection<{}>’.”

Does anyone know what/where I might add to the typings definitions?


Only works server side, if I remember correctly

That’s right. I’m making the call in a file under my server/imports/publication/ folder.