typescript generics t is a key of interface code example
Example: typescript generic type interface
interface IProcessor<T>
{
result:T;
process(a: T, b: T) => T;
}
interface IProcessor<T>
{
result:T;
process(a: T, b: T) => T;
}