Git Product home page Git Product logo

sptypescript's People

Contributors

amiluik avatar andrei-markeev avatar darius231 avatar gandjustas avatar s-kainet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sptypescript's Issues

RenderUserFieldWorker function missing from clienttemplates.js

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?

error TS2304: Cannot find name 'SP'.

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

Doesn't compile with TypeScript 2.7.1

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!

Wrong return type, SP.UserProfiles.getUserProfilePropertyFor(): string

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.

How to use it for SharePoint framework

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.