Skip to content

Commit

Permalink
feat: make the d.ts useful (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Apr 2, 2018
1 parent f124a9f commit 26e3a15
Show file tree
Hide file tree
Showing 201 changed files with 21,269 additions and 25,467 deletions.
16 changes: 8 additions & 8 deletions src/apis/abusiveexperiencereport/v1.ts
Expand Up @@ -133,12 +133,12 @@ export class Resource$Sites {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params: any,
get(params?: any,
options?: MethodOptions): AxiosPromise<Schema$SiteSummaryResponse>;
get(params: any,
options: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
callback?: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
get(params: any,
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$SiteSummaryResponse>,
callback?: BodyResponseCallback<Schema$SiteSummaryResponse>):
void|AxiosPromise<Schema$SiteSummaryResponse> {
Expand Down Expand Up @@ -196,15 +196,15 @@ export class Resource$Violatingsites {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params: any, options?: MethodOptions):
list(params?: any, options?: MethodOptions):
AxiosPromise<Schema$ViolatingSitesResponse>;
list(
params: any,
options: MethodOptions|
params?: any,
options?: MethodOptions|
BodyResponseCallback<Schema$ViolatingSitesResponse>,
callback?: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
list(
params: any,
params?: any,
options?: MethodOptions|
BodyResponseCallback<Schema$ViolatingSitesResponse>,
callback?: BodyResponseCallback<Schema$ViolatingSitesResponse>):
Expand Down
8 changes: 4 additions & 4 deletions src/apis/acceleratedmobilepageurl/v1.ts
Expand Up @@ -155,15 +155,15 @@ export class Resource$Ampurls {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
batchGet(params: any, options?: MethodOptions):
batchGet(params?: any, options?: MethodOptions):
AxiosPromise<Schema$BatchGetAmpUrlsResponse>;
batchGet(
params: any,
options: MethodOptions|
params?: any,
options?: MethodOptions|
BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>,
callback?: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
batchGet(
params: any,
params?: any,
options?: MethodOptions|
BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>,
callback?: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>):
Expand Down
55 changes: 32 additions & 23 deletions src/apis/adexchangebuyer/v1.2.ts
Expand Up @@ -279,10 +279,12 @@ export class Resource$Accounts {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
get(params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>): void;
get(params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>):
void|AxiosPromise<Schema$Account> {
if (typeof options === 'function') {
Expand Down Expand Up @@ -327,13 +329,14 @@ export class Resource$Accounts {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params: any, options?: MethodOptions): AxiosPromise<Schema$AccountsList>;
list(params?: any, options?: MethodOptions):
AxiosPromise<Schema$AccountsList>;
list(
params: any,
options: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
callback?: BodyResponseCallback<Schema$AccountsList>): void;
list(
params: any,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$AccountsList>,
callback?: BodyResponseCallback<Schema$AccountsList>):
void|AxiosPromise<Schema$AccountsList> {
Expand Down Expand Up @@ -381,12 +384,14 @@ export class Resource$Accounts {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
patch(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
patch(
params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>): void;
patch(
params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>):
void|AxiosPromise<Schema$Account> {
if (typeof options === 'function') {
Expand Down Expand Up @@ -433,12 +438,14 @@ export class Resource$Accounts {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
update(params?: any, options?: MethodOptions): AxiosPromise<Schema$Account>;
update(
params: any, options: MethodOptions|BodyResponseCallback<Schema$Account>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>): void;
update(
params: any, options?: MethodOptions|BodyResponseCallback<Schema$Account>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Account>,
callback?: BodyResponseCallback<Schema$Account>):
void|AxiosPromise<Schema$Account> {
if (typeof options === 'function') {
Expand Down Expand Up @@ -498,10 +505,11 @@ export class Resource$Creatives {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
get(params: any, options: MethodOptions|BodyResponseCallback<Schema$Creative>,
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
callback?: BodyResponseCallback<Schema$Creative>): void;
get(params: any,
get(params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
callback?: BodyResponseCallback<Schema$Creative>):
void|AxiosPromise<Schema$Creative> {
Expand Down Expand Up @@ -550,12 +558,13 @@ export class Resource$Creatives {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
insert(params?: any, options?: MethodOptions): AxiosPromise<Schema$Creative>;
insert(
params: any, options: MethodOptions|BodyResponseCallback<Schema$Creative>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
callback?: BodyResponseCallback<Schema$Creative>): void;
insert(
params: any,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$Creative>,
callback?: BodyResponseCallback<Schema$Creative>):
void|AxiosPromise<Schema$Creative> {
Expand Down Expand Up @@ -605,14 +614,14 @@ export class Resource$Creatives {
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params: any, options?: MethodOptions):
list(params?: any, options?: MethodOptions):
AxiosPromise<Schema$CreativesList>;
list(
params: any,
options: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
callback?: BodyResponseCallback<Schema$CreativesList>): void;
list(
params: any,
params?: any,
options?: MethodOptions|BodyResponseCallback<Schema$CreativesList>,
callback?: BodyResponseCallback<Schema$CreativesList>):
void|AxiosPromise<Schema$CreativesList> {
Expand Down

0 comments on commit 26e3a15

Please sign in to comment.