I know I can declare interfaces like this:
interface Greeter{
(name:string):string
}
But can I write a class that has such behavior?
class DefaultGreeter implements Greeter{
//... Now what?
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I know I can declare interfaces like this:
interface Greeter{
(name:string):string
}
But can I write a class that has such behavior?
class DefaultGreeter implements Greeter{
//... Now what?
}