Method on component.ts instead of generated.component.ts

Added a custom method to one of my pages in the .components.ts file, but in the interface it does not recognize the method. If I move it to generated and exclude generated, then it works fine. Any thoughts on what I'm doing wrong?

Unfortunately there is no way to force autocomplete to see this method. The only way to use it is to cast this to any and duck type the method:

(<any>this).myMethod()