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
My application actually works but now it's failing the TypeScript checks.
The README as this example:
var data = [ {a: 1, b: 10}, {a: 2, b: 20}, {a: 1, b: 30} ];
var res = alasql('SELECT a, SUM(b) AS b FROM ? GROUP BY a',[data]);
This will fail in TypeScript now because [ {a: 1, b: 10}, {a: 2, b: 20}, {a: 1, b: 30} ] is notRecord<string, unknown>. It's an Array<Record<string, unknown>>
I noticed this failure in an open project I have that failed CI when upgrading from 4.5.2 to 4.6.1. peterbe/docsql#568
The text was updated successfully, but these errors were encountered:
The second argument to
alasql
in TypeScript used to beany
, now it'sRecord<string, unknown>
6b3e3cb#diff-aad35d480e29819a59beed0bf21ae5a553a730703a60d5b95513ba140757eb21R158 was committed about 3 weeks ago.
My application actually works but now it's failing the TypeScript checks.
The README as this example:
This will fail in TypeScript now because
[ {a: 1, b: 10}, {a: 2, b: 20}, {a: 1, b: 30} ]
is notRecord<string, unknown>
. It's anArray<Record<string, unknown>>
I noticed this failure in an open project I have that failed CI when upgrading from 4.5.2 to 4.6.1.
peterbe/docsql#568
The text was updated successfully, but these errors were encountered: