8000 TypeError: Class constructor QueryTable cannot be invoked without 'new' · Issue #1 · ggmod/type-sql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
TypeError: Class constructor QueryTable cannot be invoked without 'new' #1
Open
@therealmaxmoon

Description

@therealmaxmoon

If I use the table definition from the README, I get the error:
TypeError: Class constructor QueryTable cannot be invoked without 'new'
But there is clearly a 'new' there, if you create an instance of a child of QueryTable :
export const BOOK = new BookTable('Book');

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

      0