I am trying to define an interface with a few methods, and I would like one of the methods to be generic.
It is a filterUnique method, so it should be able to filter lists of numbers, strings, etc.
the following does not compile for me:
export interface IGenericServices {
filterUnique(array: Array<T>): Array<T>;
}
Is there a way to make this compile, or am I making a conceptual mistake somewhere here?
Cheers!