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
Hi there. What a lovely library. I'm encountering a typing issue with dynamic inserts: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
constusers=[{name: 'Murray',age: 68,garbage: 'ignore'},{name: 'Walter',age: 80}];awaitsql`insert into users ${sql(users,'name','age')}`;// fineawaitsql`insert into users ${sql(users,'name','age')} returning id`;// fineawaitsql<{id: number}[]>`insert into users ${sql(users,'name','age')} returning id`;// Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
something I'm doing wrong?
The text was updated successfully, but these errors were encountered:
thanks. good suggestion. of course now eslint is complaining about using any, but I can live with that. I'd like to leave this open for posterity, in the hopes a fix lands in 4.
Hi there. What a lovely library. I'm encountering a typing issue with dynamic inserts:
Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
something I'm doing wrong?
The text was updated successfully, but these errors were encountered: