I want to resolve this error
Type 'MyInterface | undefined' is not assignable to type 'MyInterface '. Type undefined' is not assignable to type 'MyInterface '.ts(2322)
This is what I want to do.
right: MyInterface ;
this.right=this.responseData.filter( condition );
and for resolving this I should use my variable like this
right: MyInterface | any;
but I don't want to use any! Any other ways to resolve this?