This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 887
Ban property #2791
Comments
How come |
Another use case - I want to ban usage of console.log('surprise, these are defined in lib.dom.d.ts', length, name); The following TypeScript-based solutions don't work: (because declare var length: never;
// nor
interface Window {
length: never;
} Reference in TypeScript issues - microsoft/TypeScript#14306 |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
No error.
Expected behavior
A lint failure.
This would be a breaking change, but it makes sense to me. Maybe put it under an option until 6.0?
The text was updated successfully, but these errors were encountered: