Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result type for pnp.sp.profiles.getPropertiesFor() #128

Closed
1 of 4 tasks
doxic012 opened this issue Jun 12, 2018 · 1 comment · Fixed by #130
Closed
1 of 4 tasks

Wrong result type for pnp.sp.profiles.getPropertiesFor() #128

doxic012 opened this issue Jun 12, 2018 · 1 comment · Fixed by #130

Comments

@doxic012
Copy link

doxic012 commented Jun 12, 2018

Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Version

Please specify what version of the library you are using: [1.1.0]

Expected / Desired Behavior / Question

Observed Behavior

Reopening the following Issue from: SharePoint/PnP-JS-Core#656 (comment)

The problem which is solved in sp-pnp-js is still persistent in this repository:
The Typescript definition for the method from pnp.sp.profiles
getPropertiesFor(loginName: string): Promise<any[]>;
should be
getPropertiesFor(loginName: string): Promise<any>;

to use the method properly i have to cast the result to any:
const userProps = await pnp.sp.profiles.getPropertiesFor(loginName) as any;

@github-actions
Copy link

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants