-
Notifications
You must be signed in to change notification settings - Fork 9
Typegen produces result: unknown when warehouse query fails #244
Copy link
Copy link
Open
Description
Summary
When appkit generate-types fails to execute a query against the warehouse (e.g. format incompatibility, stale session), it generates result: unknown in appKitTypes.d.ts instead of failing the build. This causes TypeScript compilation errors in components that depend on the generated types (Property 'length' does not exist on type '{}').
Reproduction
- Have a query file
revenue_by_destination.sqlinconfig/queries/ - The warehouse rejects the typegen query (format error, session timeout, etc.)
- Typegen shows
✓ revenue_by_destination(success!) but generates:result: unknown tscfails because components expectdatato be an array
Expected behavior
Either:
- Typegen should fail the build when it can't determine result types
- Or typegen should preserve the previous good types instead of overwriting with
unknown - At minimum, typegen should show
✗(failure) when it producesunknowntypes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels