gandjustas / sptypescript

TypeScript declarations for SharePoint JavaScript Object Model (JSOM) + lots of samples.
56 stars 19 forks source link

Wrong return type, SP.UserProfiles.getUserProfilePropertyFor(): string #7

Open DanRJ opened 7 years ago

DanRJ commented 7 years ago

Hey,

First of all, great project!

The problem is as follows: The function SP.UserProfiles.getUserProfilePropertyFor() is defined to return a string, however it returns a SP.Result from SharePoint Online which corresponds to the SP.ClientResult type which you have defined.

A fix for this would be greatly appreciated.