@types/parse-mockdb
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-mockdb

Weekly Downloads

32

Version

0.1.8

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • types