Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
Just a heads up: anotherHejlsberg PR comment detailing new upcoming footguns with method signatures.
In addition to theirknown issues, going forward, method signatures additionallywill not enforce readonly type relationships with thecoming--enforceReadonly
TypeScript compiler flag enabled.
Including this new footgun specific to method signatures in thelint rule docs adds important context regarding the cost/benefit ratio (and reason-to-be) of themethod-signature-style
lint rule.
Naturally,if and when the--enforceReadonly
flag lands in stable TypeScript would be the time to add this information to themethod-signature-style
docs.