Skip to content

Commit dc05f09

Browse files
committed
- fix type definition
1 parent 0ad8092 commit dc05f09

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
**/webpack.config*.js
66
test/tsd.**
77
src/backendless.js
8-
src/backendless.d.ts
8+
backendless.d.ts
File renamed without changes.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
"dist",
1111
"lib",
1212
"es",
13-
"src",
14-
"backendless.d.ts"
13+
"src"
1514
],
1615
"typings": "backendless.d.ts",
1716
"scripts": {
18-
"dev": "watch 'npm run build:commonjs' ./src",
17+
"dev": "watch 'npm run build:umd' ./src",
1918
"clean": "rimraf lib dist es",
2019
"lint": "eslint src --fix",
2120
"check": "npm run lint && npm run test",
@@ -29,9 +28,8 @@
2928
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
3029
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/backendless.js",
3130
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/backendless.min.js",
32-
"copy": "copyup src/* dist",
3331
"bannerize": "bannerize ./dist/*.js --banner=./banner.ejs",
34-
"prepublish": "npm run clean && npm run copy && npm run build && npm run bannerize"
32+
"prepublish": "npm run clean && npm run build && npm run bannerize"
3533
},
3634
"repository": {
3735
"type": "git",

test/tsd.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../src/backendless.d.ts" />
1+
/// <reference path="../backendless.d.ts" />
22
/// <reference path="./es6-promise.d.ts" />
33

44
import Counter = __Backendless.Counter;
@@ -11,9 +11,6 @@ function testMain() {
1111
var browser: { browser: string, version: string } = Backendless.browser;
1212

1313
Backendless.initApp('APPLICATION_ID', 'JS_SECRET_KEY');
14-
15-
Backendless.setUIState('state');
16-
Backendless.setUIState(null);
1714
}
1815

1916
function testLocalCache() {

0 commit comments

Comments
 (0)