sp-rest-explorer icon indicating copy to clipboard operation
sp-rest-explorer copied to clipboard

Feature request : export as typescript

Open stevebeauge opened this issue 3 years ago • 1 comments

This tools is awesome, mainly because Microsoft has a quite poor documentation regarding the REST APIs.

It would be nice, in each type page to have a typescript type snippet that we may copy/paste into SPFX project, when we have to deal with some spHttpClient request.

For example, in the page SP.Web entity page, it would be nice to have a block containing something like:

interface SP_Web extends SP_SecurableObject {
    AccessRequestListUrl: string,
    AccessRequestSiteDescription: string
    // and so on ...
}

Another project edmx-typescript-generator is doing something similar, but it's for command line and there are some types that are not properly exported.

stevebeauge avatar Mar 11 '22 09:03 stevebeauge

Yeah, it makes sense, thanks for the suggestion! Will work on this feature when I finish upcoming fast-serve changes.

s-KaiNet avatar Mar 11 '22 15:03 s-KaiNet