Skip to content

New VarUnique causes typescript issue #340

@hoijnet

Description

@hoijnet

Describe the bug
When building a React application with the new 11.1.1 client, the following issue occurs:

node_modules/@terminusdb/terminusdb-client/dist/typescript/lib/query/woqlDoc.d.ts:44:16 - error TS1005: '(' expected.

44     constructor: typeof VarUnique;

To Reproduce
Build a react application with the new VarUnique function in Typescript

Expected behavior
There should not be an issue building.

Error logs

The typescript woqlDoc.d.ts gives an error '(' expected.ts(1005) at the : after constructor.

export class VarUnique {
    /**
     * @param {string} name The variable name
     * @returns
     */
    constructor(name: string);
    name: string;
    json: () => {
        '@type': string;
        variable: string;
    };
    constructor: typeof VarUnique;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageissue to be triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions