-
Notifications
You must be signed in to change notification settings - Fork 885
One-Line Rule error when declaring wildcard ambient modules #1425
Comments
It looks like TypeScript only just recently added wildcard support to ambient module declaration in June to TypeScript 2.0.0. See TypeScript Issue#6615. Also relevant from their What's New In TypeScript 2.0 wiki entry:
|
Should be fairly straightforward to check for this new syntax and not visit the non-existent module block in |
Was this resolved by #1429 and can be closed? |
Did this get any release? I'm having this bug in |
I am getting similar with Webstorm trying to declare a module: declare module "test"; INFO - avascript.linter.tslint.TsLint - TsLint inner error. TsLint version: 3.15.1 TypeError: Cannot read property 'kind' of undefined |
Oh, looks like this might be coming in Version 4. |
Thanks @arlair I did not see that issue. |
What is the reason that a line like
before the declare module doesn't work? I am in a situation where this would be the only solution until 4.0 is released, but I'm having no luck. |
hey folks, sorry for the pain around this bug. I'll cut a new release on the |
Having the same problem and |
v4.0.0-dev.0 is available now ( |
@adidahiya Yes that works! |
Work! Thanks! :) |
npm install tslint@next helps me |
Bug Report
3.13.0
and3.14.0-dev.0
1.8.10
and2.0.0
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
To not error.
The text was updated successfully, but these errors were encountered: