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

Typescript Support? #56

Open
tsejerome opened this issue Oct 9, 2024 · 0 comments
Open

Typescript Support? #56

tsejerome opened this issue Oct 9, 2024 · 0 comments

Comments

@tsejerome
Copy link

tsejerome commented Oct 9, 2024

We are using typescript and it would be a lot more convenient if we can get a typings version of the package.
I'm currently using dts-gen for quick generation like this -
But as most arguments are typed as any so it is kinda risky.

Thank you!

/** Declaration file generated by dts-gen */

declare module 'gettyimages-api' {
  export class GettyImages {
    constructor(...args: any[]);

    collections(...args: any[]): void;

    countries(...args: any[]): void;

    customrequest(...args: any[]): void;

    downloadsimages(...args: any[]): void;

    downloadsvideos(...args: any[]): void;

    events(...args: any[]): void;

    getAccessToken(...args: any[]): void;

    images(...args: any[]): void;

    searchimages(...args: any[]): void;

    searchimagescreative(...args: any[]): void;

    searchimageseditorial(...args: any[]): void;

    searchvideos(...args: any[]): void;

    searchvideoscreative(...args: any[]): void;

    searchvideoseditorial(...args: any[]): void;

    videos(...args: any[]): void;

  }

}



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

1 participant