Pnpjs: hubSiteData question

Created on 4 Feb 2019  路  3Comments  路  Source: pnp/pnpjs

Category

  • [X] Enhancement
  • [ ] Bug
  • [X] Question
  • [ ] Documentation gap/issue

@patrick-rodgers @koltyakov I'm not used working within the sppackage so I'm asking first :)

It seems we are missing some commands regarding HubSites.
_api/HubSites
_api/HubSites/GetById
And also the web/HubSiteData seems to return a Promise<void>.

So do you have any suggestions, should we make a HubSite.ts and create Types for HubSite and HubSiteData?

code investigate enhancement

All 3 comments

I haven't looked at hub sites specifically. As always, if there is missing coverage that makes sense to add (ie folks want to use it) than I support adding it. Yes, I would think as well it makes sense to update the Promise to give some indication of what comes back there as it isn't void.

If I would make a PR, could you have a look at it and decide if it's in the ballpark.
And if needed do some changes/point me in the right direction?

Sure, that works for me.

Was this page helpful?
0 / 5 - 0 ratings