types of property 'length' are incompatible typescript code example
Example: types of property length are incompatible
{name: string}[]
// Or if you prefer:
Array<{name: string}>
{name: string}[]
// Or if you prefer:
Array<{name: string}>