Skip to content

Type definition problem #125

Description

@kayvaninvemo

I am not sure how to get Type Definition file. Here is one type definition, which is not published on npm. And there is and inconsistent type definition in definitely typed repo.

In this repo

  interface DeleteStatement extends Statement {
    from(...tbls: string[]): DeleteStatement
    using(...columnList: string[]): DeleteStatement
    using(columnList: string[]): DeleteStatement
    where(column?: string | null, value?: any): DeleteStatement
    where(...whereExpr: WhereExpression[]): DeleteStatement
    and(column?: string | null, value?: any): DeleteStatement
    and(...whereExpr: WhereExpression[]): DeleteStatement
  }

here is the code from DefinitelyTyped

  interface DeleteStatement extends Statement {
    from(...tbls: string[]): DeleteStatement
    using(...columnList: string[]): SelectStatement
    using(columnList: string[]): SelectStatement
    where(column?: string | null, value?: any): SelectStatement
    where(...whereExpr: WhereExpression[]): SelectStatement
    and(column?: string | null, value?: any): SelectStatement
    and(...whereExpr: WhereExpression[]): SelectStatement
  }

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions