tsutils icon indicating copy to clipboard operation
tsutils copied to clipboard

Typescript 5 support?

Open ImLunaHey opened this issue 2 years ago • 2 comments

ImLunaHey avatar Mar 18 '23 15:03 ImLunaHey

Only one unit test is failing:

    it('returns an empty array for nodes that cannot have JsDoc', () => {
        assert.deepEqual(getJsDoc(getSourceFile('test/files/jsdoc/invalid.ts').statements[0]), []);
    });

The invalid.ts file is:

/** I'm not allowed here, am I? */
return foo;

I don't see anything in the tsutils code that checks whether the node is allowed. The test appears to be testing TypeScript code rather than tsutils code, so it probably doesn't belong.

pmcelhaney avatar Aug 29 '23 13:08 pmcelhaney

Another issue with TypeScript 5: https://github.com/ajafff/tsutils/issues/155

pmcelhaney avatar Aug 29 '23 13:08 pmcelhaney