delegateas/XrmDefinitelyTyped

getAttribute and getControl doesn't support delegate functions

daryllabar opened this issue · 1 comments

Describe the bug
getAttribute and getControl functions allow for a delegate function to be passed in, instead of a string, and an array of Controls/Attributes to be returned, Currently this is not listed as an overload

from the Xrm.d.ts:

/**
 * Gets an attribute.
 * @param delegateFunction A matching delegate function
 * @returns An array of attribute.
 * @see {@link https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/collections External Link: Collections (Client API reference)}
 */
getAttribute(delegateFunction: Collection.MatchingDelegate<Attributes.Attribute>): Attributes.Attribute[];


/**
* Gets a control.
* @param delegateFunction A matching delegate function.
* @returns An array of control.
* @see {@link https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/collections External Link: Collections (Client API reference)}
*/
getControl(delegateFunction: Collection.MatchingDelegate<Controls.Control>): Controls.Control[];

Added in 5.6.0.