Skip to content

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
@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

3 participants