Bolisov / google-api-typings-generator

⚠️ This repo is no longer maintained and outdated, use active fork ⚠️
https://github.com/Maxim-Mazurok/google-api-typings-generator
8 stars 5 forks source link

gapi.client.spreadsheets #4

Open Lopol2010 opened 6 years ago

Lopol2010 commented 6 years ago

is this error or im wrong? i have only gapi.client.spreadsheets but actual gapi responses with gapi.client.sheets.spreadsheets . In other words when typing gapi.client.sheets in my VS code i got error and typescript also throws error TS2339: Property 'sheets' does not exist on type 'typeof client'. So can you change namespaces or something

Lopol2010 commented 6 years ago

I used your generator and see that actual API have gapi.client.sheets instead of .spreadsheets

Lopol2010 commented 6 years ago

looks like you can just put this line at the end of gapi.client.sheets file but before two braces like that

      target line
    }
  }
esamattis commented 6 years ago

Yeah, that solves it for me too.

esamattis commented 6 years ago

Here's a patch-package patch I use https://gist.github.com/epeli/1522d2f40929d928fc24b365e51f2ac8

Maxim-Mazurok commented 4 years ago

This repo is abandoned, see #19 and use active fork instead: Maxim-Mazurok/google-api-typings-generator

Please, close this issue if you will, thanks for your cooperation!