Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#69375 [@types/powerapps-component-framewor…
Browse files Browse the repository at this point in the history
…k] Update type for "createFromEntity" param in EntityFormOptions by @pjramirez-ms
  • Loading branch information
pjramirez-ms authored Apr 17, 2024
1 parent 235f5ec commit a67345f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ declare namespace ComponentFramework {
/**
* Designates a record that will provide default values based on mapped attribute values. The lookup object has the following String properties: entityType, id, and name
*/
createFromEntity?: EntityReference | undefined;
createFromEntity?: LookupValue | undefined;

/**
* ID of the entity record to display the form for.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,3 +666,13 @@ const fluentDesignLanguage: ComponentFramework.FluentDesignState = {
const lookupOptionsTest: ComponentFramework.UtilityApi.LookupOptions = {
entityTypes: [],
};

const entityFormOptionsTest: ComponentFramework.NavigationApi.EntityFormOptions = {
entityName: "",
entityId: "",
createFromEntity: {
id: "",
name: "",
entityType: "",
},
};

0 comments on commit a67345f

Please sign in to comment.