Installation
npm install --save @types/parse-mockdb
Summary
This package contains type definitions for parse-mockdb (https://github.com/HustleInc/parse-mockdb).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-mockdb.
index.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" {
import * as Parse from "parse";
export = ParseMockDB;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/parse
Credits
These definitions were written by David Poetzsch-Heffter.