Here's the issue: I attempted to create a function that takes a parameter and returns the same type.
To illustrate, I started with the most basic example:
type Test = <T>(arg: T) => T;
const test: Test = (arg: string) => arg;
However, this straightforward implementation of the Test type function triggers the error "Type 'T' is not assignable to type 'string'."
I'm curious as to why this error arises even when I'm not utilizing properties from the template argument. Can someone shed light on this for me?