p({ type: Number }) doesn't work.
See original GitHub issueTS v2.1.1, av-ts v0.5.4
num: number = p({
type: Number
})
cause
Error:(15, 3) TS2322:Type 'Number' is not assignable to type 'number'.
'number' is a primitive, but 'Number' is a wrapper object. Prefer using 'number' when possible.
Boolean is similar.
But p(Number) works.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Input of type number not working as expected - Stack Overflow
I think, I have a solution for you. Your Input should be like <input matInput placeholder="days" type="number" [value]="element.day1?
Read more >InputNumber with type ="number" doesn´t work
Hey guys, Anyone knows how can I use <p:inputNumber with type ="number" ? I need to use a web application on a tablet...
Read more ><input type="number"> - HTML: HyperText Markup Language
<input> elements of type number are used to let the user enter a number. They include built-in validation to reject non-numerical entries.
Read more >HTML5 Input type=number broken in Google Chrome #5422
NVDA 2015.3 does not work with HTML5 input type=number in Google Chrome 46. It does announce it as a spin box however. By...
Read more >694391 - <input type="number"> doesn't allow non-Latin digits ...
This issue is about making non-latin digits work regardless of UI language. The original bug report did not mention the UI language at...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just found that code like
works…
Nice! Will try the new version tomorrow~