This is AWESOME! I hate having to do it with with the ?s
?
@postpostscript, would there be a way to make Statement type safe in a way where we could do something like this:
Statement
interface User { name: string; age: number; } Statement<User>`insert into user values(${name}, ${age})`
Where it would type check if the write types were provided in replacements?
@nbbaier this seems to work!: @postpostscript/sqliteBuilderTyped. [Example](https://www.val.town/v/postpostscript/sqliteBuilderTypedExample
)
@postpostscript Awesome! Really cool, thanks for implementing this
@nbbaier thanks, and no problem!
This is AWESOME! I hate having to do it with with the
?
s@postpostscript, would there be a way to make
Statement
type safe in a way where we could do something like this:Where it would type check if the write types were provided in replacements?
@nbbaier this seems to work!: @postpostscript/sqliteBuilderTyped. [Example](https://www.val.town/v/postpostscript/sqliteBuilderTypedExample
)
@postpostscript Awesome! Really cool, thanks for implementing this
@nbbaier thanks, and no problem!