mdbootstrap / material-design-for-bootstrap

Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
https://mdbootstrap.com/docs/standard/
MIT License
9.34k stars 1.15k forks source link

build this project with tsconfig => noImplicitAny: "true" #117

Closed codebysandip closed 6 years ago

codebysandip commented 6 years ago

I got a error in input-validate.directive.ts at line 37. const inputType = event.srcElement.attributes.['type'].nodeValue as string; You should change this line with: const inputType = event.srcElement.attributes.getNamedItem('type').nodeValue as string; or, const inputType = event.targetElement.attributes.getNamedItem('type').nodeValue as string;

Not every Angular developer like use of typescript "any" in project. I strictly disallow use of any in Angular project. We want a modular more organised project thats why we are using Angular.

mdbootstrap commented 6 years ago

Hi @sandip12081992 , it looks like you opened a issue in wrong project. I guess you were referring to: https://github.com/mdbootstrap/Angular-Bootstrap-with-Material-Design

Regarding your issue. At the moment we are not compatible with "noImplicitAny": true nor "strictNullChecks": true, however we are working on it. Within coming release we have make our code compatible with: "noUnusedLocals": true, "noUnusedParameters": true,