Whenever I attempt something similar to this
interface MyInterface {
myStringProperty: string = 'str';
myNumberProperty?: number = 9;
myMethodProperty(): void
}
An issue arises in the form of an error like: Error image
After reading through this post ()
What is the best way for me to resolve this?