DefinitelyTyped/types/parse-mockdb/index.d.ts
Regev Brody 9cf5c98aa8 underscore - add typing to pick (#36230)
* underscore - add typing to pick

* underscore - add typing to pick

* underscore - add typing to pick

* underscore - add typing to pick
2019-06-19 10:04:01 -07:00

22 lines
747 B
TypeScript

// Type definitions for parse-mockdb 0.1
// Project: https://github.com/HustleInc/parse-mockdb
// Definitions by: David Poetzsch-Heffter <https://github.com/dpoetzsch>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
declare namespace ParseMockDB {
function mockDB(): void;
function unMockDB(): void;
function cleanUp(): void;
function promiseResultSync<T>(promise: Parse.IPromise<T>): T;
type HookType = "beforeSave" | "beforeDelete";
function registerHook(className: string, hookType: HookType, hookFn: (request: Parse.Cloud.BeforeSaveRequest) => Parse.IPromise<any>): void;
}
declare module "parse-mockdb" {
import * as Parse from 'parse'
export = ParseMockDB;
}