segmentio / typewriter

Type safety + intellisense for your Segment analytics
https://segment.com/docs/protocols/typewriter/
MIT License
227 stars 53 forks source link

upgrade analytics.js to analytics-next (browser SDK) #297

Closed silesky closed 1 year ago

silesky commented 1 year ago
npx ts-node src/__tests__/ts-typedef-tests/run-tests.ts

These tests confirm:

Running the tests...

  1. Build typescript client using cli
  2. Imports that client into a type definition test that asserts that it's typed correctly
  3. Type checks both the client (artifact) and the type definition