@@ -415,9 +415,11 @@ declare namespace Xrm {
415415
416416 type ViewType = "savedquery" | "userquery" ;
417417
418- interface EntityList {
418+ interface PageInput {
419419 pageType : PageType
420+ }
420421
422+ interface EntityList extends PageInput {
421423 /**
422424 * The logical name of the entity to load in the list control.
423425 */
@@ -434,11 +436,9 @@ declare namespace Xrm {
434436 viewType ?: ViewType ;
435437 }
436438
437- interface EntityRecord {
438- pageType : PageType
439-
439+ interface EntityRecord extends PageInput {
440440 /**
441- * The logical name of the entity to load in the list control .
441+ * Logical name of the entity to display the form for .
442442 */
443443 entityName : string ;
444444
@@ -450,20 +450,20 @@ declare namespace Xrm {
450450 /**
451451 * Designates a record that will provide default values based on mapped attribute values.
452452 */
453- createFromEntity ?: null ; /* have to specify a lookup object */
453+ createFromEntity ?: Lookup ;
454454
455455 /**
456456 * A dictionary object that passes extra parameters to the form.
457457 */
458- data ?: null ; /* Must be a dictionary objectthat passes extra parameters */
458+ data ?: object ;
459459
460460 /**
461461 * ID of the form instance to be displayed.
462462 */
463463 formId ?: string ;
464464
465465 /**
466- * Indicates whether the form is navigated to, from a different entity using cross-entity business process flow.
466+ * Indicates whether the form is navigated to from a different entity using cross-entity business process flow.
467467 */
468468 isCrossEntityNavigate ?: boolean ;
469469
@@ -485,17 +485,15 @@ declare namespace Xrm {
485485 /**
486486 * Define a relationship object to display the related records on the form
487487 */
488- relationship ?: null ; /* Must be relationship object to display related records*/
488+ relationship ?: EntityFormRelationship ;
489489
490490 /**
491491 * ID of the selected stage in business process instance.
492492 */
493493 selectedStageId ?: string ;
494494 }
495495
496- interface WebResource {
497- pageType : PageType
498-
496+ interface WebResource extends PageInput {
499497 /**
500498 * The name of the web resource to load.
501499 */
0 commit comments