Answer the question
In order to leave comments, you need to log in
How to correctly describe the interface for checking method arguments in TS?
There is an interface IFoo and a class Foo
interface IFoo {
bar(value: number): number;
}
class Foo implements IFoo {
bar(num) {
return num * num;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question