You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
The text was updated successfully, but these errors were encountered:
Category
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;
The text was updated successfully, but these errors were encountered: