Documentation: Several types in namespace `sap.ui.model.type` are missing supported formatting options
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
OpenUI5 version: 1.108.0
For the typescript type definitions, it would be very useful if the constructor documentation for all Types in the sap.ui.model.type namespace would contain all supported formatting options.
As an example, the documentation for type sap.ui.model.type.Float states that all supported formatting options of NumberFormat are accepted. Two of those options (out of many) are listed explicitly:
This is pretty much the same for all type classes in the package (besides Boolean and String, which don't accept formatting options). Could you add the missing formatting options to the documentation? This would give type safety to developers and also allows to get rid of casts to handover formatting options to the different constructors, which are not explicitly documented.
Outside the sap.ui.model.type namespace, I saw the method NumberFormat.getInstance(..) where the formatting options are also not listed.
Thanks for considering this!
Regards,
Florian
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.