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
in your script, you use variable.isArray(), but my node send me a deprecated error and suggest me to use Array.isArray(variable), can you make that change please ?
exact error:
(node:19756) [DEP0044] DeprecationWarning: The util.isArray API is deprecated. Please use Array.isArray() instead.
(Use node --trace-deprecation ... to show where the warning was created)
../node_modules/.pnpm/sql@0.78.0/node_modules/sql/lib/types.d.ts:40:52 - error TS2344: Type 'CName' does not satisfy the constraint 'string'.
Type 'keyof Row' is not assignable to type 'string'.
Type 'string | number | symbol' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
40 columns: {[CName in keyof Row]: ColumnDefinition<CName, Row[CName]>};
~~~~~
Found 1 error in ../node_modules/.pnpm/sql@0.78.0/node_modules/sql/lib/types.d.ts:40
Activity
Gwenitora commentedon May 14, 2025
I have also a ts compile error:
../node_modules/.pnpm/sql@0.78.0/node_modules/sql/lib/types.d.ts:40:52 - error TS2344: Type 'CName' does not satisfy the constraint 'string'.
Type 'keyof Row' is not assignable to type 'string'.
Type 'string | number | symbol' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
40 columns: {[CName in keyof Row]: ColumnDefinition<CName, Row[CName]>};
~~~~~
Found 1 error in ../node_modules/.pnpm/sql@0.78.0/node_modules/sql/lib/types.d.ts:40
[-]isArray is deprecated.[/-][+]isArray is deprecated + ts compile error[/+]