Skip to content

isArray is deprecated + ts compile error #425

Description

@Gwenitora

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)

Activity

  1. Gwenitora commented on May 14, 2025

    @Gwenitora
    Author

    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

  2. changed the title [-]isArray is deprecated.[/-] [+]isArray is deprecated + ts compile error[/+] on May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions