Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK
Перейти к файлу
Matt Mazzola 784f9ece11 Update README.md 2016-06-23 11:40:09 -07:00
src Copy powerbi-filters code into powerbi-models code. Rename test files and add more tests for settings validation. 2016-06-23 11:34:44 -07:00
test Copy powerbi-filters code into powerbi-models code. Rename test files and add more tests for settings validation. 2016-06-23 11:34:44 -07:00
.gitignore Initial Commit of powerbi-models. Has interfaces which are shared between host and iframe code. 2016-06-23 11:34:44 -07:00
.npmignore Fix package.json main and typings references, add fix tsconfigs 2016-06-23 11:34:44 -07:00
LICENSE.txt Initial Commit of powerbi-models. Has interfaces which are shared between host and iframe code. 2016-06-23 11:34:44 -07:00
README.md Update README.md 2016-06-23 11:40:09 -07:00
gulpfile.js Install del and update gulp to clean dist and tmp directories before build and test respectively. 2016-06-23 11:34:44 -07:00
karma.conf.js Initial Commit of powerbi-models. Has interfaces which are shared between host and iframe code. 2016-06-23 11:34:44 -07:00
package.json Copy powerbi-filters code into powerbi-models code. Rename test files and add more tests for settings validation. 2016-06-23 11:34:44 -07:00
tsconfig.json Fix package.json main and typings references, add fix tsconfigs 2016-06-23 11:34:44 -07:00
typings.json Initial Commit of powerbi-models. Has interfaces which are shared between host and iframe code. 2016-06-23 11:34:44 -07:00
webpack.config.js Initial Commit of powerbi-models. Has interfaces which are shared between host and iframe code. 2016-06-23 11:34:44 -07:00
webpack.test.config.js Copy powerbi-filters code into powerbi-models code. Rename test files and add more tests for settings validation. 2016-06-23 11:34:44 -07:00
webpack.test.tsconfig.json Fix package.json main and typings references, add fix tsconfigs 2016-06-23 11:34:44 -07:00

README.md

powerbi-models

Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK.

For each model there is a TypeScript interface, a json schema definitions, and a validation function to ensure and object is valid.

Getting Started

Install

npm install --save powerbi-models

Import

import * as models from 'powerbi-models';

Usage

let testObject = { x: 1 };

const errors = models.validateLoad(testObject);

if(errors) {
  console.warn(errors);
}

Would output to the console:

[
  {
    message: 'accessToken is required'
  }
]