Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@types/gapi.client.slides] slides namespace is not recognized #37717

Closed
andriychuma opened this issue Aug 18, 2019 · 2 comments
Closed

[@types/gapi.client.slides] slides namespace is not recognized #37717

andriychuma opened this issue Aug 18, 2019 · 2 comments

Comments

@andriychuma
Copy link

andriychuma commented Aug 18, 2019

Having installed @types/gapi.client.slides package, gapi.client.slides namespace does not get recognized, whilst for instance gapi.client.load('slides', 'v1') signature is being recognized well.

It looks like the root cause is presentations const which is currently placed under gapi.client namespace, but should be under gapi.client.slides (I've tested it on the library):

declare namespace gapi.client {
/** Load Google Slides API v1 */
function load(name: "slides", version: "v1"): PromiseLike<void>;
function load(name: "slides", version: "v1", callback: () => any): void;
const presentations: slides.PresentationsResource;
namespace slides {

After moving it into the right place, it looks like the issue goes away.

Package version
"@types/gapi.client.slides": "1.0.1"

@Maxim-Mazurok
Copy link
Contributor

Hello, can you give the most recent version of @types/gapi.client.slides a try?
It should be fixed by the new generator: Maxim-Mazurok/google-api-typings-generator

@orta
Copy link
Collaborator

orta commented Aug 3, 2021

Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.

To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.

@orta orta closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants