#Type is incorrect?

1 messages · Page 1 of 1 (latest)

dense brook
#

invoices isn't typed as an Invoice[]

#

the table in the database will have ids, but the data in invoices is noted as just placeholder data, not the content of the database

#

For this project, we've provided some placeholder data in app/lib/placeholder-data.js. Each JavaScript object in the file represents a table in your database.

#

this can't have ids since the database will handle that

#

it's not wrong or invalid, but i think how it's laid out might be a bit misleading or confusing (as in this case, lol.)