Closed Qsppl closed 8 months ago
I found how to define separate types for different versions of TypeScript in the npm package: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions
You can now add separate type files for TypeScript v4 and TypeScript v5
TypeScript v4
TypeScript v5
I've found it too, but I think the current definitions should work in both (at least in v5).
Okay, I'll test it. If everything is ok, I will close the task
I didn't find any problems.
I found how to define separate types for different versions of TypeScript in the npm package: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions
You can now add separate type files for
TypeScript v4
andTypeScript v5