My current structure looks like this:
export interface Complex {
getId<T>(entity: T): string
}
const test: Complex = {
getId<Number>(entity){return "1"} // encountering an error 'entity is implicitly any'
}
I am wondering why specifying the type of entity
as entity:Number
is necessary to resolve this issue?