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 Definition would be nice #3

Open
Benjamin-Willard opened this issue May 1, 2019 · 2 comments
Open

TypeScript Definition would be nice #3

Benjamin-Willard opened this issue May 1, 2019 · 2 comments

Comments

@Benjamin-Willard
Copy link

No description provided.

@ozymandias547
Copy link
Collaborator

Do you have an example of this in another repo?

@Benjamin-Willard
Copy link
Author

Benjamin-Willard commented May 2, 2019

/// <reference types="node" />

declare namespace HOLOGRAM {
    interface HologramStatic {
        (apiKey: string, options: any) : any
    }

    export const Static: HologramStatic;
}

declare module "hologram-node" {
    export = HOLOGRAM.Static;
}

where you can specify the endpoints etc.

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

2 participants