When I do something like that
interface MyInterface {
myStringProperty: string = 'str';
myNumberProperty?: number = 9;
myMethodProperty(): void
}
I had error like: Error image
Based on this article (https://areknawo.com/typescript-introduction-pt2/)
How I can fix it?