core/lib/tern_from_ts/defs/node-mysql-wrapper.json.tmp
2017-05-14 13:22:31 +02:00

45 lines
1.4 KiB
Plaintext

{
"Mongo": {
"Collection": {
"allow": "fn(options: ?) -> bool",
"deny": "fn(options: ?) -> bool",
"find": "fn(selector?: ?, options?: ?) -> ?",
"findOne": "fn(selector?: ?, options?: ?) -> T",
"insert": "fn(doc: T, callback?: Function) -> string",
"rawCollection": "fn() -> ?",
"rawDatabase": "fn() -> ?",
"remove": "fn(selector: ?, callback?: Function)",
"update": "fn(selector: ?, modifier: ?, options?: ?, callback?: Function) -> number",
"upsert": "fn(selector: ?, modifier: ?, options?: ?, callback?: Function) -> ret",
"_ensureIndex": "fn(indexName: string, options?: ?)",
"!type": "CollectionStatic"
},
"CollectionStatic": {},
"Cursor": {
"count": "fn() -> number",
"fetch": "fn() -> ?",
"forEach": "fn(callback: fn(doc: T, index: number, cursor: ?), thisArg?: ?)",
"map": "fn(callback: fn(doc: T, index: number, cursor: ?), thisArg?: ?) -> ?",
"observe": "fn(callbacks: Object) -> ?",
"observeChanges": "fn(callbacks: Object) -> ?",
"!type": "CursorStatic"
},
"CursorStatic": {},
"ObjectID": {
"!type": "ObjectIDStatic"
},
"ObjectIDStatic": {}
},
"Meteor": {
"isServer": "bool",
"isClient": "bool"
},
"!name": "my-meteor.d.ts",
"!define": {
"ret": {
"numberAffected": "number",
"insertedId": "string"
}
}
}