does not declare interface type 'IFoo'