Definitelytyped: Sharepoint.D.TS Missing Fields on ContextInfo and RenderContext_InView

Created on 12 Oct 2017  路  4Comments  路  Source: DefinitelyTyped/DefinitelyTyped

  • [X ] I tried using the @types/xxxx package and had problems.
  • [X ] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • [ ] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [x] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @....

@gandjustas
@andrei-markeev
@baywet
@teroarvola

In the JS for SharePoint, "ContextInfo" contains fields called ListTitle and SiteTitle.

Similarly, RenderContext_InView is missing a field called LastSelectedItemIID.

In our current environment, we have the d.ts files checked in, but have modified them to contain these fields. However, we would like to move towards NPM packages. We cannot do so until we get these fields added to the interfaces.

Most helpful comment

I have created a fork and will resolve this myself.

All 4 comments

I have created a fork and will resolve this myself.

@Cityonhill93 are you talking about the _spPageContextInfo? I added listTitle 4 months ago, webTitle was already there and siteTitle doesn't show up in the context of the SharePoint Online Page.
For RenderContext_InView LastSelectedItemId is here (L1207) but typed as any.

disregard my previous comment, saw your PR :)

@Cityonhill93 maybe this issue could be closed as the PR has been merged? (I don't have contrib rights on the repos, so you'd need to do it yourself)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zzzen picture Zzzen  路  3Comments

fasatrix picture fasatrix  路  3Comments

lilling picture lilling  路  3Comments

jgoz picture jgoz  路  3Comments

Loghorn picture Loghorn  路  3Comments