I'm somewhat new to this. So excuse me if I get this wrong. What i'm trying to do this to define a method on the protractor ElementFinder class prototype.
I'm following the syntax in the merged pull request here.https://github.com/Microsoft/TypeScript/pull/6213
> 1 import { ElementFinder} from "protractor";
> 2
> 3 declare module "protractor" {
> 4 interface ElementFinder {
> 5 doSomething(): void;
> 6 } }
> 7
> 8
> 9 ElementFinder.prototype.doSomething = function (): void {
> 10 console.log("");
> 11 };
I'm getting this error on line 9
[ts] 'ElementFinder' only refers to a type, but is being used as a value here.
What am I doing wrong here? The only thing that is different in the example is that I'm using module from npm rather than one defined in the my package.Is it not possible to augment modules this way?