I have imported a Table with pagination component in my project. I am getting this error:
Unexpected token. A constructor, method, accessor, or property was expected.
It's showing an error because of this interface code:
export  interface PeriodicElement {
 name: string;
 position: number;
 weight: number;
 symbol: string;
}
I have seen many suggestions for fixing the same error in Stack Overflow, but nothing worked for me. I am aware about the concept of interfaces, but it is new to me. Where did I go wrong?

export interface PeriodicElement { ..... }inside another classexport class EditSessionComponent implements OnInit { }so the error was coming, Now its solved.