Blog

npm install fails on Windows 10: ENOENT,–4058, operation not permitted, rename

Currently I have faced different issues when doing npm install on some of my projects. My current environment is: – Windows 10 (OS Build 15063.413) – Node version: 8.1.2 – NPM version: 5.0.3 Every time I tried npm install or install a isolated package I got errors like this one: Text error: npm ERR! path Read More →

Creating MyDocument and MyDocumentCollection models extending Item and Items PnP JS Core classes

This is a blog post in the series about working with Custom Business Objects, Parsers and TypeScript decorators in PnP JS Core: Introduction to Why do we should use Custom Business Objects (Models) in PnP JS Core Creating select and expand TypeScript Property Decorators to be used in PnP JS Core Creating MyDocument and MyDocumentCollection Read More →

Creating select and expand TypeScript Property Decorators to be used in PnP JS Core

This is a blog post in the series about working with Custom Business Objects, Parsers and TypeScript decorators in PnP JS Core: Introduction to Why do we should use Custom Business Objects (Models) in PnP JS Core Creating select and expand TypeScript Property Decorators to be used in PnP JS Core (this article) Create MyDocument Read More →

Why Should we use Custom Business Objects (Models) in PnP JS Core

  This is a blog post in the series about working with Custom Business Objects, Parsers and Decorators in PnP JS Core: Introduction to Why should we use Custom Business Objects (Models) in PnP JS Core (this article) Creating select and expand TypeScript Property Decorators to be used in PnP JS Core Create MyDocument and Read More →

How to integrate PnP JS Core and SharePoint Framework logging systems

Recently I was playing with PnP JS Core library, which basically is a wrapper of SharePoint Rest API that allows us to easily use it. I discovered some cool Features in this library which I really like them! For example, we are able to easily cache queries, do batches, and the library has a good Read More →

All TypeScript 2.3 options for tsconfig.json (tsc –init)

Yesterday was released TypeScript 2.3 and one of the improvements was an easier startup with better help, richer init, and quicker strictness. It means that TypeScript’s –init output so that potential options are explicitly listed out in comments. As an example, tsconfig.json output will look something like the following: We can see how TypeScript team Read More →

Boilerplate project for React, TypeScript, Webpack 2, postCSS, CSS-Modules and HMR

Hi, Few months ago, I was starting to use WebPack 2 and TypeScript on my React projects. To be fair with ES6 and Babel, I really enjoyed build applications with them and they are in my hearth and that is why I did other post as well, about how to build a new SPA with Read More →

How to Convert Array of Objects into Comma Separated String extracting only one property

Hi, I’d like to share a quick solution which always is really useful when you are handling complex object-type data structures in JavaScript / ES6 / TypeScript. That code will be useful when you want to extract some property values from an array of objects. I will share two versions one for EcmaScript 5 and Read More →

TypeScript functions to get current domain, site collection and Site urls with window.location fallback

Hi, Recently I was working in a TypeScript project building a SPA application on top of Office 365 and I needed to get the current domain, current site collection and current site urls for using them in a different React components. The case is we always rely on _spPageContextInfo to get this information, but in Read More →

TypeScript functions to convert from Base64 to UTF8 and vice versa

Hi, Few days ago I wrote a post about uploading JSON object using JavaScript. There are some dependencies using this approach, which are b64EncodeUnicode and b64DecodeUnicode functions. I’d like to share how to write these functions using TypeScript:   Enjoy! @jquintozamora