Closed erwinhalik closed 5 years ago
I'm having the same issue, and it seems that @rictic already worked on a fix: https://github.com/PolymerElements/paper-input/pull/681
The fix haven't been merged due a failed CI test :-(
What I'm doing as a temporary solution is editing my \node_modules\@polymer\paper-input\paper-input-behavior.d.ts file, by changing "autocapitalize: string|null|undefined;" to "autocapitalize: string;".
What I'm doing as a temporary solution is editing my \node_modules\@Polymer\paper-input\paper-input-behavior.d.ts file, by changing "autocapitalize: string|null|undefined;" to "autocapitalize: string;".
Is this a workaround or a viable solution?
It seems to me that this property should be of the same type as the standard HTMLElement property.
Well, I would say it's temporary, because you are messing up with the node_modules folder, and therefore, you project will fail if you clone it on a different machine, unless you also make the file edit there.
Please keep in mind that this is not a big issue, it's a silly bug that's just making TypeScript's type checking mad.
Well, I would say it's temporary, because you are messing up with the node_modules folder, and therefore, you project will fail if you clone it on a different machine, unless you also make the file edit there.
I'm not talking about the local editing, but changing the type to just string
.
Please keep in mind that this is not a big issue, it's a silly bug that's just making TypeScript's type checking mad.
Yes it isn't. Still; if that was a viable solution, I'd suggest to make a pull request out of it.
Yes, as I mentioned in my initial response, there's already a PR (#681) for this.
I'm having the same issue, and it seems that @rictic already worked on a fix: #681
same problem, how can ignore this error??
Description
When using paper-input v3.0.1 with typescript the typescript transpiler shows the error below.
Expected outcome
no output
Actual outcome
Steps to reproduce
npm i --save @polymer/paper-input
import '@polymer/paper-input/paper-input';
tsc