SyntaxFix
Write A Post
Hire A Developer
Questions
An other solution:
interface bar { length: number; } bars = [{ length: 1 } as bar];