fullstorydev / fullstory-browser-sdk

Official FullStory SDK for JavaScript, for web browsers
MIT License
55 stars 17 forks source link

Use named exports #35

Closed patrick-fs closed 4 years ago

patrick-fs commented 4 years ago

Sentry is working on building a TypeScript integration with @fullstorydev/browser and discovered an inconsistency in the way we export functions. We default export an object in the JavaScript source code, but our typings file exports functions individually (no default). This PR changes the JavaScript source code to use named exports, which is consistent with how functions are defined in index.d.ts.

This is related to https://github.com/fullstorydev/fullstory-browser-sdk/issues/34