Skip to content

Conversation

essential-randomness
Copy link
Member

Making a draft pull request so I can leave comments

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fujocoded ❌ Failed (Inspect) Nov 11, 2024 9:30pm

`);

// Extract rows from the result
const blorboEntries: BlorboEntry[] = result.rows as unknown as BlorboEntry[];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure you should cast here. In theory, you should be able to get the type directly from the query, and if this cast is right then it should match BlorboEntry. Is your VSCode or whatever editor set up so you can check the TypeScript types?

If you want to change the type, you should map over the entry and put them in the right order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants