1 is int. 1.5 is float. TypeScript says number

DEV · 19.11.2026 · 01:58

A whole number and a decimal do not land the same way on the PHP DTO. On the JSON converter, paste 1 and the property is typed int. Paste 1.5 and it is typed float. TypeScript types both as…

Читать в источнике