-
Notifications
You must be signed in to change notification settings - Fork 1k
Expression of type 'string' can't be used to index type #8562
Copy link
Copy link
Closed
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Metadata
Metadata
Assignees
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Type
Fields
Give feedbackNo fields configured for issues without a type.
Within the section "Show items available in the selected list in the item dropdown", the loadItems() function has the line...
resolve(items[wp.properties.listName]);Which produces the error...
Expression of type 'string' can't be used to index typeThis can be resolve by changing the line to...
resolve(items[wp.properties.listName as keyof typeof items]);Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.