mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fixes optional/missing parameters for Google Tasks API. (#36012)
"parent" is a required field on CreateTaskRequests (see the docs, for example the Quickstart guide at https://github.com/googleapis/nodejs-tasks) Not all of the properties on AppEngineHttpRequest are required, also observable from the quickstart like mentioned above.
This commit is contained in:
parent
6b4ddd0d5d
commit
7e4f7be66a
7
types/google-cloud__tasks/index.d.ts
vendored
7
types/google-cloud__tasks/index.d.ts
vendored
@ -27,9 +27,9 @@ export interface AppEngineHttpQueue {
|
||||
}
|
||||
|
||||
export interface AppEngineHttpRequest {
|
||||
appEngineRouting: AppEngineRouting;
|
||||
appEngineRouting?: AppEngineRouting;
|
||||
body: string;
|
||||
headers: {
|
||||
headers?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
httpMethod: string;
|
||||
@ -57,7 +57,8 @@ export interface Binding {
|
||||
}
|
||||
|
||||
export interface CreateTaskRequest {
|
||||
responseView: View;
|
||||
responseView?: View;
|
||||
parent: string;
|
||||
task: Partial<Task>;
|
||||
}
|
||||
|
||||
|
||||
7
types/google-cloud__tasks/ts3.1/index.d.ts
vendored
7
types/google-cloud__tasks/ts3.1/index.d.ts
vendored
@ -22,9 +22,9 @@ export interface AppEngineHttpQueue {
|
||||
}
|
||||
|
||||
export interface AppEngineHttpRequest {
|
||||
appEngineRouting: AppEngineRouting;
|
||||
appEngineRouting?: AppEngineRouting;
|
||||
body: string;
|
||||
headers: {
|
||||
headers?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
httpMethod: string;
|
||||
@ -52,7 +52,8 @@ export interface Binding {
|
||||
}
|
||||
|
||||
export interface CreateTaskRequest {
|
||||
responseView: View;
|
||||
responseView?: View;
|
||||
parent: string;
|
||||
task: Partial<Task>;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user