Files
DefinitelyTyped/parse-mockdb/parse-mockdb.d.ts
2016-09-20 00:31:42 +02:00

22 lines
735 B
TypeScript

// Type definitions for parse-mockdb v0.1.13
// Project: https://github.com/HustleInc/parse-mockdb
// Definitions by: David Poetzsch-Heffter <https://github.com/dpoetzsch>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../parse/parse.d.ts" />
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" {
export = ParseMockDB;
}