Enforce typing in TypeScript

Hello PhpStorm community,
I am responisble for a small team (10 people) developing WebApplications with PhpStorm. I must say I really love PhpStorm. Especially early support for TypeScript is really good. I have one question however. Is there a way to enforce strict typing with TypeScript. Right now types are optional and the following works like a charm in PhpStorm

class ProgressIndicator {
        /**
         * Flag indicating if the ProgressIndicator should be inserted inline or in an opening ColorBox
         */
        inline = false;
}


What I want however is PhpStorm to show a warning (or better an error) if types are not given and the following syntax should be enforced:

class ProgressIndicator {
        /**
         *  Flag indicating if the ProgressIndicator should be inserted inline or in an opening ColorBox
         * @type {boolean}
         */
        inline:boolean = false;
}


Is there a setting in PhpStorm which allows me to do that?
Thanks for any help

Martin

2 comments
Comment actions Permalink

Not currently possible. Please feel free to log a request for this feature to youtrack, http://youtrack.jetbrains.com/issues/WEB

0
Comment actions Permalink

Thanks Elena, that's what I just did: http://youtrack.jetbrains.com/issue/WEB-12611

Keep up the good work
Regards Martin

0

Please sign in to leave a comment.