tsutils
tsutils copied to clipboard
Typescript 5 support?
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.
Another issue with TypeScript 5: https://github.com/ajafff/tsutils/issues/155