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

fix(replay): Fix type for replayCanvasIntegration #11995

Merged
merged 2 commits into from
May 13, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented May 13, 2024

snapshot is a public API.

I think the other methods we do not need to expose (?).

With this, usage will be:

const canvas = getClient()?.getIntegrationByName<ReturnType<typeof replayCanvasIntegration>>('ReplayCanvas');
await canvas.snapshot();

Closes #11971

@mydea mydea requested review from billyvg and c298lee May 13, 2024 08:55
@mydea mydea self-assigned this May 13, 2024
@mydea mydea requested a review from a team as a code owner May 13, 2024 08:55
@mydea mydea merged commit 9510771 into develop May 13, 2024
93 checks passed
@mydea mydea deleted the fn/replay-canvas-type branch May 13, 2024 13:02
andreiborza pushed a commit that referenced this pull request May 16, 2024
`snapshot` is a public API.

I think the other methods we do not need to expose (?).

With this, usage will be:

```ts
const canvas = getClient()?.getIntegrationByName<ReturnType<typeof replayCanvasIntegration>>('ReplayCanvas');
await canvas.snapshot();
```

Closes #11971
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.

Typescript: ReplayCanvas integration type doesn't have "snapshot" method
2 participants