export let data:PageData;
const handler = new DataHandler(data.availableUnits, { rowsPerPage: 50})
const rows = handler.getRows();
...
{#each $rows as row}
<tr>
<td>{row.unitNum.replace(/^0+/gm,'')}</td>
<td>{row.size.replace(/^0+/gm,'')}</td>
<td>${row.price}</td>
</tr>
{/each}
I'm getting an error in VSCode that the only Property that exists on row is sizeDescription. The properties are displaying in the table but VSCode is mad.
I create an object via combining multiple types and when I do each $rows as row only the last type is passed through, from my +page.server.ts:
From my +page.svelte:
I'm getting an error in VSCode that the only Property that exists on
row
issizeDescription
. The properties are displaying in the table but VSCode is mad.