diff --git a/notNeededPackages.json b/notNeededPackages.json index 369b0c12e0..d76814fa63 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -198,6 +198,12 @@ "sourceRepoURL": "https://github.com/dvajs/dva", "asOfVersion": "1.1.0" }, + { + "libraryName": "EasyStar.js", + "typingsPackageName": "easystarjs", + "sourceRepoURL": "http://easystarjs.com/", + "asOfVersion": "0.3.1" + }, { "libraryName": "ecmarkup", "typingsPackageName": "ecmarkup", diff --git a/types/easystarjs/easystarjs-tests.ts b/types/easystarjs/easystarjs-tests.ts deleted file mode 100644 index 206e5bf2cc..0000000000 --- a/types/easystarjs/easystarjs-tests.ts +++ /dev/null @@ -1,45 +0,0 @@ -// For node.js compile using: tsc --module commonjs easystarjs-tests.ts -// then run using: node easystarjs-tests.js -import EasyStar = require('easystarjs'); - -var test = new EasyStar.js(); - -test.setGrid([ - [0, 0, 0, 1, 0], - [0, 0, 0, 1, 0], - [0, 0, 1, 1, 0], - [0, 0, 0, 0, 0], - [0, 0, 0, 1, 0] -]); -test.setAcceptableTiles([0]); -test.setIterationsPerCalculation(1000); -test.findPath(2, 0, 4, 4, function (path: EasyStar.Position[]) -{ - if (path == null) - { - console.log("No path found!"); - return; - } - for (var i = 0; i < path.length; i++) - { - var pos = path[i]; - console.log("%d, %d", pos.x, pos.y); - } -}); - -test.calculate(); - -/* -Should log: - -2, 0 -2, 1 -1, 1 -1, 2 -1, 3 -2, 3 -3, 3 -4, 3 -4, 4 - -*/ \ No newline at end of file diff --git a/types/easystarjs/index.d.ts b/types/easystarjs/index.d.ts deleted file mode 100644 index c4da0c51a7..0000000000 --- a/types/easystarjs/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Type definitions for EasyStar.js 0.1.6 -// Project: http://easystarjs.com/ -// Definitions by: Magnus Gustafsson -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/* - easystarjs.d.ts may be freely distributed under the MIT license. - */ - -export = easystarjs; - -declare namespace easystarjs -{ - class js - { - new (): js; - setGrid(grid: number[][]): void; - setAcceptableTiles(tiles: number[]): void; - findPath(startX: number, startY: number, endX: number, endY: number, callback: (path: Position[]) => void): void; - calculate(): void; - setIterationsPerCalculation(iterations: number): void; - avoidAdditionalPoint(x: number, y: number): void; - stopAvoidingAdditionalPoint(x: number, y: number): void; - stopAvoidingAllAdditionalPoints(): void; - enableDiagonals(): void; - disableDiagonals(): void; - setTileCost(tileType: number, multiplicativeCost: number): void; - } - - interface Position - { - x: number; - y: number; - } -} \ No newline at end of file diff --git a/types/easystarjs/tsconfig.json b/types/easystarjs/tsconfig.json deleted file mode 100644 index 0f36761c26..0000000000 --- a/types/easystarjs/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "easystarjs-tests.ts" - ] -} \ No newline at end of file diff --git a/types/easystarjs/tslint.json b/types/easystarjs/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/easystarjs/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -}