gandjustas / sptypescript Goto Github PK
View Code? Open in Web Editor NEWTypeScript declarations for SharePoint JavaScript Object Model (JSOM) + lots of samples.
TypeScript declarations for SharePoint JavaScript Object Model (JSOM) + lots of samples.
The text on https://www.npmjs.com/package/@types/sharepoint mentions this project. Is this still the source for @types/sharepoint or is this now https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharepoint. If this I no longer active a remark with the new URL in the Readme is helpful.
Hi, I am using this SP.ClientConstants.ChildItems constant in a project, but it is still not defined here.
Thanks!
When trying to build a display template using typescript we had some missing functions which seem not to have not been implemented in the typings file.
For example RenderUserFieldWorker and other stuff from clienttemplates.js seems not to have been added.
Is this correct or are we missing something?
I installed @type/sharepoint. I trying to use model dialog and I get the error SP cannot be found. I am using visual studio code. Do I need to do something on typings.d.ts? I want to to test this before install the templates from you project. or Should I install also you templates and try again?
Thanks for put together the project
Current version of typings doesn't compile with typescript 2.7.1.
One of errors: (2213,9): Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.
Now I had to make hotfix adding :any typings at the end of these lines. But it's very inconvenient. Please, fix it. Thank you!
Hey,
First of all, great project!
The problem is as follows:
The function SP.UserProfiles.getUserProfilePropertyFor() is defined to return a string, however it returns a SP.Result from SharePoint Online which corresponds to the SP.ClientResult type which you have defined.
A fix for this would be greatly appreciated.
sorry my newbness; is it possible to re use this for SharePoint framework webparts ?
If yes, do you have a sample code and steps to reference it ?
I tried installing it via npm; then importing via import { sp } ... but it says that this is not a module.
thanks
For View, Field, ContentType appropriate property names should be get_jsLink
and set_jsLink
(NOT set_jSLink
and get_jSLink
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.