Typings for setCurrentView
skovlund opened this issue · 1 comments
skovlund commented
Describe the bug
Typings for viewSelector.setCurrentView(object);
assume the parameter 'object' is of type EntityReference<string>
.
This typing forces the entityType
part of the object
to be string
, but it should be a number
.
To Reproduce
Steps to reproduce the behavior:
- Generate typings for a form with a subgrid, where the viewselector is enabled
- Add formscripting that uses
viewSelector.setCurrentView(object);
Expected behavior
Typings that match the documentation i.e., entityType
is a number
and not a string
.
Environment
- XrmDefinitelyTyped v. 5.4.2
mkholt commented