Answer the question
In order to leave comments, you need to log in
How to make classes with support for interfaces without errors?
Good afternoon!
I recently encountered that there are few errors in a class whose methods interact with typed interfaces, and the interfaces themselves are built without errors:
export interface IHandlerControl{
screenEvent: string
eventType: number
}
export interface IServiceControl{
svc: string,
query: any
}
Answer the question
In order to leave comments, you need to log in
You have errors in the code, for example, here you are assigning an interface as a value, and not designating it as a type
this.storesFeed = IHandlerControl = {...}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question