The T
type isn’t defined yet. It needs to be added to the method as a type variable like:
filterUnique<T>(array: Array<T>): Array<T>;
Or added to the interface like:
export interface IGenericServices<T> {
filterUnique(array: Array<T>): Array<T>;
}