Integrate type definitions.

This commit is contained in:
Wolfgang Faust 2017-05-13 19:30:01 -04:00
parent 02d4542ef0
commit 5d433c72b8
4 changed files with 11 additions and 15 deletions

@ -8,6 +8,7 @@
"xlsx": "./bin/xlsx.njs"
},
"main": "./xlsx",
"types": "types",
"browser": {
"node": false,
"crypto": false,
@ -27,12 +28,15 @@
"devDependencies": {
"mocha":"",
"xlsjs":"",
"@sheetjs/uglify-js":""
"@sheetjs/uglify-js":"",
"dtslint": "^0.1.2",
"typescript": "^2.2.0"
},
"repository": { "type":"git", "url":"git://github.com/SheetJS/js-xlsx.git" },
"scripts": {
"pretest": "git submodule init && git submodule update",
"test": "make travis"
"test": "make travis",
"dtslint": "dtslint types"
},
"config": {
"blanket": {

2
types/index.d.ts vendored

@ -1,7 +1,5 @@
// Type definitions for xlsx
// Project: https://github.com/SheetJS/js-xlsx
// Definitions by: themauveavenger <https://github.com/themauveavenger/>, Wolfgang Faust <https://github.com/wolfgang42>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/** Attempts to read filename and parse */
export function readFile(filename: string, opts?: IParsingOptions): IWorkBook;

@ -8,16 +8,10 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"baseUrl": ".",
"paths": { "xlsx": ["."] },
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"xlsx-tests.ts"
]
}
}
}

@ -1,5 +1,5 @@
{
"extends": "dtslint/dt.json",
"extends": "dtslint/dtslint.json",
"rules": {
"interface-name": [true, "always-prefix"]
}