diff --git a/notNeededPackages.json b/notNeededPackages.json index ef1d1143ae..486b055d78 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -624,6 +624,12 @@ "sourceRepoURL": "https://github.com/moment/moment", "asOfVersion": "2.13.0" }, + { + "libraryName": "Monk", + "typingsPackageName": "monk", + "sourceRepoURL": "https://github.com/LearnBoost/monk.git", + "asOfVersion": "6.0.0" + }, { "libraryName": "MQTT", "typingsPackageName": "mqtt", diff --git a/types/monk/index.d.ts b/types/monk/index.d.ts deleted file mode 100644 index 8e732bd9c4..0000000000 --- a/types/monk/index.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -// Type definitions for Monk v1.0.1 -// Project: https://github.com/LearnBoost/monk.git -// Definitions by: Patrick Bartsch -// Definitions: https://github.com/DefinitelyTyped/Monk - -declare module "monk" { - function m(database: string): m.Monk; - module m { - export interface promise { - type:string - on(eventName:string, fn:Function):void; - error(fn:Function):promise; - success(fn:Function):promise; - } - - export interface Collection { - id(hexstring:string):string // returns ObjectId - id(obj:Object):string // returns ObjectId - id():string // returns new generated ObjectId - - /* - * All commands accept the simple data[, …], options and a callback. - * You can pass fields to select as an array: data[, …], ['field', …], fn - * You can pass fields as a string delimited by spaces: data[, …], 'field1 field2', fn - * To exclude a field, prefix the field name with '-': data[, …], '-field1', fn - */ - cast(obj?:Object):Object; - - count(needle:Object, fn?:Function):promise; - - distinct(field:string, options?:Object, fn?:Function):promise; - - drop(fn?:Function):promise; - - insert(data:Object, options?:Object, fn?:Function):promise; - - find(needle:Object, options?:Object, fn?:Function):promise; - findOne(needle:Object, options?:Object, fn?:Function):promise; - /** - * findAndModify - * - * @param {Object} search query, or { query, update } object - * @param {Object} optional, update object - * @param {Object|String|Array} optional, options or fields - * @param {Function} callback - * @return {Promise} - * @api public - */ - findAndModify(needle:Object, update?:Object, filter?:string[], options?:Object, fn?:Function):promise; - findById(id:string, options?:Object, fn?:Function):promise; - - update(needle:Object, update:Object, filter?:string[], options?:Object, fn?:Function):promise; - updateById(id:string, update:Object, filter?:string[], options?:Object, fn?:Function):promise; - - remove(needle:Object, options?:Object, fn?:Function):promise; - removeById(id:string, options?:Object, fn?:Function):promise; - - } - - export interface Monk { - (database: string): void; - close():void; - - get(collection:string):Collection; - } - } - - export = m; -} diff --git a/types/monk/tsconfig.json b/types/monk/tsconfig.json deleted file mode 100644 index 02963e3afd..0000000000 --- a/types/monk/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts" - ] -} \ No newline at end of file diff --git a/types/monk/tslint.json b/types/monk/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/monk/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 - } -}