How to use custome oauth in meteor+inoic

I write a custome oauth module,and add this module to my meteor+ionic project.
I add new method Meteor.loginWithSample,but i can not use this method in my project.
I got

client/imports/app/app-routing.module.ts (9, 8): Property ‘loginWithSample’ does not exist on type 'typeof Meteor

when compile my project.how can i add my method to @types/meteor.
I used meteor cli
I am a newer for typescript

The Meteor authentication works out of the box and it’s great but what if you want to use it with Angular-Meteor package and Ionic!

It is not a good way?