AS ANY capitalize upper case
Introducing AS and ANY keywords instead of or in addition to as and any.
When using as or any, many TS programmers need to have their determination and overcome their inferior feeling to break type-safe code. AS and ANY can express their strong will more than as and any do.
Additionally, capitalized words attract notice so that they can be easily fixed at a later point. as and any have average looking. If they are something to avoid, they should have distinct looking. AS and ANY express that we should avoid to use them.
This feature should be configurable on tsconfig to avoid breaking existing codes.
AS and ANY can be used at any place where as and any are used.
let variable: ANYreq.headers AS HeadersMy suggestion meets these guidelines:
And.. // TS-IGNORE ?
This doesn't really fit with our philosophy of how the language should work. Editors could use font ligatures or other display logic to render those keywords differently if that's desirable.
Most helpful comment
This doesn't really fit with our philosophy of how the language should work. Editors could use font ligatures or other display logic to render those keywords differently if that's desirable.