rrweb-io / rrweb

record and replay the web
https://www.rrweb.io/
MIT License
15.89k stars 1.38k forks source link

publish well-formulated and concise types #1487

Open tmc opened 1 month ago

tmc commented 1 month ago

Preflight Checklist

What package is this feature request for?

rrweb

Problem Description

Today the types that define the payloads the rrweb ecosystem operates over are a bit spread out which makes them not super accessible to other language environments.

Proposed Solution

Tidy up and publish a small set of straightforward types.

Alternatives Considered

Not doing so.

Additional Information

No response

eoghanmurray commented 2 weeks ago

types that are used in both packages/rrweb and packages/rrweb-snapshot end up in packages/types/src/index.ts

~the recording payload types should mostly be in packages/rrweb/src/types.ts~ looks like the recording types are now mostly in packages/types/src/index.ts also for importing to packages/rrdom or rrvideo

can you elaborate on which ones you are looking for and where you expected them to be?