Skip to content

Conversation

timidak
Copy link
Contributor

@timidak timidak commented Nov 28, 2023

Problem

I had two problems when integrating the SDK into telemetrydeck-react. First, the d.ts file wasn't recognized by typescript, so I added the file manually to the types field of the package.json. After doing so, I noticed that the TelemetryDeckPayload type was missing.

What I did

I basically added the types field to your package.json referencing the telemetrydeck.d.ts that is generated and added a very basic typedef of the TelemetryDeckPayload type.
I also ran the prepublish command to test that my work was correct and saw the right payload type exported from the d.ts file.

export type TelemetryDeckPayload = {
    [x: string]: any;
};

@winsmith winsmith self-requested a review November 28, 2023 18:33
@winsmith winsmith merged commit ee93f38 into TelemetryDeck:main Nov 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants