The following code should be properly highlighted, but is not. Removing the generic type will cause the string to be highlighted again.
const{ data }=awaitsql<{date: Date;foo: number;bar: number;}>` select toStartOfInterval(timestamp, ${interval(5,"minute")}) AS date, sum(_sample_interval * double2) / sum(_sample_interval) as foo, sum(_sample_interval * double3) / sum(_sample_interval) as bar from analytics where timestamp >= now() - ${interval(7,"day")} and timestamp <= now() and index1 = ${worldId} group by date order by date`;
The following code should be properly highlighted, but is not. Removing the generic type will cause the string to be highlighted again.