You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ TS error on generated code when verbatimModuleSyntax is enabled
// Code generated by sqlc. DO NOT EDIT.importmysql,{RowDataPacket,ResultSetHeader}from"mysql2/promise";^^^^^^^^^^^^^^^^^^^^^^^^^^^^`'ResultSetHeader' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.ts(1484)`
Hopefully it is a simple addition to add the type keyword to these imports by default.
The imports are both interfaces so would only be used as types.
This change is also compatible if verbatimModuleSyntax is not enabled.
The text was updated successfully, but these errors were encountered:
not-matt
changed the title
Add type-only imports
Use type-only imports
May 23, 2025
❌ TS error on generated code when
verbatimModuleSyntax
is enabled✅ Fixed by adding
type
keywordHopefully it is a simple addition to add the
type
keyword to these imports by default.The imports are both interfaces so would only be used as types.
This change is also compatible if
verbatimModuleSyntax
is not enabled.The text was updated successfully, but these errors were encountered: