2015-05-05 11 views
6

beyan edilemez. Ben benim tslint.json dosyasını kontrol etmek gerekir fark soruyu yayınlanmıştır ve bunu buldum gibi

module MyModule { 
    "use strict"; 

    class MyService { 
     static $inject = ["$http"]; 
     constructor(private $http: ng.IHttpService) { 
     } 
    } 
} 

cevap

10

:

"no-constructor-vars": true, 

Görünüşe göre, bu tslint's github page belgelendirdikten İşte

kodum var: Bu nedenle, çözüm'u devre dışı bırakmak için :

"no-constructor-vars": false, 
+0

'hiç yapıcı-vars' bir parametre-properties'' olarak değiştirilmiş, https://github.com/palantir/tslint/issues/1296 bkz – Bob

İlgili konular