- Compare
pages.houses.vue
withpages/cars.vue
. The types in the houses page are muddled.
- Install the dependencies.
- Add
DATABASE_URL
to .env file, push schema and rundb/seed.ts
if needed.
- The undefined error did not show up in the original code but did in this reproduction, so it wasn't handled. However, the issue where
total
appeared asnumber
in the handler and asany
is the same. - The issue with
Promise.all
doesn't occur in this reproduction but does in my app. One thing not reproduced was my use ofAliasedTables
from Drizzle.
How can the result types (e.g., total
or a key in the result) be inferred correctly in the API routes and returned, but inferred as any
in the InternalApi, resulting in muddled types?