如何在meteor+;伊诺克

如何在meteor+;伊诺克,meteor,Meteor,我编写了一个自定义oauth模块,并将该模块添加到我的meteor+ionic项目中。 我添加了新方法Meteor.loginWithSample,但我不能在我的项目中使用此方法。 我得到 client/imports/app/app-routing.module.ts(9,8):属性 类型“typeof Meteor”上不存在“loginWithSample” 当编译我的项目时。我如何将我的方法添加到@types/meteor。 我用了meteor cli 我是打字机的新手

我编写了一个自定义oauth模块,并将该模块添加到我的meteor+ionic项目中。 我添加了新方法Meteor.loginWithSample,但我不能在我的项目中使用此方法。 我得到

client/imports/app/app-routing.module.ts(9,8):属性 类型“typeof Meteor”上不存在“loginWithSample”

当编译我的项目时。我如何将我的方法添加到@types/meteor。 我用了meteor cli 我是打字机的新手