I wrote this code below to show my problem
type MyFunction<T> = (req: string, res: number) => T;
interface ITest {
store: MyFunction<void>;
}
class Test implements ITest {
store(req, res) { //req, res got implicit any type
req.codePointAt()
res.toFixed()
}
}
Why when I implement my interface ITest on my class Test it still not being able to infer the params types ?