s-KaiNet / sp-rest-explorer

Source code for SharePoint REST API Metadata Explorer
https://s-kainet.github.io/sp-rest-explorer
89 stars 8 forks source link

Feature request : export as typescript #3

Closed stevebeauge closed 2 weeks ago

stevebeauge commented 2 years ago

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.

s-KaiNet commented 2 years ago

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

s-KaiNet commented 2 weeks ago

Will close this one, because currently I don't have time to invest in new features for this project.