Is your feature request related to a problem? Please describe.
The problem is the one mentioned in this issue #313, where the TypeScript const modifier is used (microsoft/TypeScript#51865) which was introduced in v5 from what I can see.
Describe a solution you'd like
Some way to make the types safe for earlier versions of TypeScript
Describe alternatives you've considered
If that is not possible, than atleast some kind of warning somewhere in the docs should be present to indicate the problem
Additional context

Is your feature request related to a problem? Please describe.
The problem is the one mentioned in this issue #313, where the TypeScript
constmodifier is used (microsoft/TypeScript#51865) which was introduced in v5 from what I can see.Describe a solution you'd like
Some way to make the types safe for earlier versions of TypeScript
Describe alternatives you've considered
If that is not possible, than atleast some kind of warning somewhere in the docs should be present to indicate the problem
Additional context