mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
return type of runQuery should be a promise (#21073)
Fix for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20724
This commit is contained in:
committed by
Sheetal Nandi
parent
c3a393c3d4
commit
0c3c44e043
2
types/google-cloud__datastore/index.d.ts
vendored
2
types/google-cloud__datastore/index.d.ts
vendored
@@ -223,7 +223,7 @@ declare module '@google-cloud/datastore/request' {
|
||||
|
||||
runQuery(query: Query, options: QueryOptions, callback: QueryCallback): void;
|
||||
runQuery(query: Query, callback: QueryCallback): void;
|
||||
runQuery(query: Query, options?: QueryOptions): QueryResult;
|
||||
runQuery(query: Query, options?: QueryOptions): Promise<QueryResult>;
|
||||
|
||||
runQueryStream(query: Query, options?: QueryOptions): NodeJS.ReadableStream;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user