mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Verified that addPreSearch returns a ContextSensitiveHandler, and since the handler is added against a control, the getEventSource can return a Control as well..
This commit is contained in:
4
xrm/xrm.d.ts
vendored
4
xrm/xrm.d.ts
vendored
@@ -786,7 +786,7 @@ declare namespace Xrm
|
||||
*
|
||||
* @return The event source.
|
||||
*/
|
||||
getEventSource(): Attribute | Entity;
|
||||
getEventSource(): Attribute | Control | Entity;
|
||||
|
||||
/**
|
||||
* Gets the shared variable with the specified key.
|
||||
@@ -1726,7 +1726,7 @@ declare namespace Xrm
|
||||
*
|
||||
* @param {Function} handler The handler.
|
||||
*/
|
||||
addPreSearch( handler: () => void ): void;
|
||||
addPreSearch( handler: ContextSensitiveHandler ): void;
|
||||
|
||||
/**
|
||||
* Adds an additional custom filter to the lookup, with the "AND" filter operator.
|
||||
|
||||
Reference in New Issue
Block a user