gandjustas / sptypescript

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

Add index key definition to access properties throught it's index. #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

This typings are used by https://github.com/SharePoint/PnP-JS-Core. There the data is returned as objects without functionality. But the properties could be accessed via their key like

let title = myList["Title"];

This is required especially when the typescript option noImplicitAny is used.

gandjustas commented 8 years ago

Can you provide sample code?