mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-09 17:11:10 +08:00
Merge pull request #19049 from jaeggerr/parse
[parse] Added beforeFind trigger to Parse Cloud
This commit is contained in:
10
types/parse/index.d.ts
vendored
10
types/parse/index.d.ts
vendored
@@ -1,6 +1,8 @@
|
||||
// Type definitions for parse 1.9
|
||||
// Type definitions for parse 2.2
|
||||
// Project: https://parse.com/
|
||||
// Definitions by: Ullisen Media Group <http://ullisenmedia.com>, David Poetzsch-Heffter <https://github.com/dpoetzsch>
|
||||
// Definitions by: Ullisen Media Group <http://ullisenmedia.com>
|
||||
// David Poetzsch-Heffter <https://github.com/dpoetzsch>
|
||||
// Cedric Kemp <https://github.com/jaeggerr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -892,11 +894,15 @@ declare namespace Parse {
|
||||
interface BeforeSaveResponse extends FunctionResponse {
|
||||
success: () => void;
|
||||
}
|
||||
interface BeforeFindRequest extends TriggerRequest {
|
||||
query: Query;
|
||||
}
|
||||
|
||||
function afterDelete(arg1: any, func?: (request: AfterDeleteRequest) => void): void;
|
||||
function afterSave(arg1: any, func?: (request: AfterSaveRequest) => void): void;
|
||||
function beforeDelete(arg1: any, func?: (request: BeforeDeleteRequest, response: BeforeDeleteResponse) => void): void;
|
||||
function beforeSave(arg1: any, func?: (request: BeforeSaveRequest, response: BeforeSaveResponse) => void): void;
|
||||
function beforeFind(arg1: any, func?: (request: BeforeFindRequest, response: BeforeFindRequest) => void): void;
|
||||
function define(name: string, func?: (request: FunctionRequest, response: FunctionResponse) => void): void;
|
||||
function httpRequest(options: HTTPOptions): Promise<HttpResponse>;
|
||||
function job(name: string, func?: (request: JobRequest, status: JobStatus) => void): HttpResponse;
|
||||
|
||||
Reference in New Issue
Block a user