Skip to content

Commit a18df2e

Browse files
authored
🤖 Merge PR DefinitelyTyped#74799 [xrm] Modifying MultiSelectOptionSetAttribute.controls type by @cgoconseils
1 parent 45c127d commit a18df2e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎types/xrm/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ declare namespace Xrm {
30263026
* A collection of all the controls on the form that interface with this attribute.
30273027
* @see {@link https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/collections External Link: Collections (Client API reference)}
30283028
*/
3029-
controls: Collection.ItemCollection<Controls.OptionSetControl>;
3029+
controls: Collection.ItemCollection<Controls.MultiSelectOptionSetControl>;
30303030
}
30313031

30323032
/**

‎types/xrm/xrm-tests.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ if (multiSelectOptionSetAttributeEnum !== null) {
205205
const multiSelectOptionEnumValue: TestMultiSelectOptionSet[] | null = multiSelectOptionSetAttributeEnum.getValue();
206206
}
207207

208+
// Demonstrate that controls on a MultiSelectOptionSetAttribute are typed as MultiSelectOptionSetControl
209+
multiSelectOptionSetAttribute?.controls; // $ExpectType ItemCollection<MultiSelectOptionSetControl> | undefined
210+
208211
/// Demonstrate setFormNotification
209212

210213
let level: Xrm.FormNotificationLevel;

0 commit comments

Comments
 (0)