You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating type defintions for a consumer of segment it is impossible for the compiler to get exported members of the @segment/facade module, which results in an error: "Facade" is not exported by "node_modules/@segment/facade/index.d.ts", imported by "node_modules/@segment/analytics-next/dist/types/lib/to-facade.d.ts".
btw.: this is the only @segment/... module that is using augmentation in type definitions.
Proposition
Remove the wrapping module augmentation declare module... as it's not really needed as the types can be easily imported by using the module's name @segment/facade declared in package.json.
Add export modifier to the Options interface declaration, so that is can be consumed from outside:
General info
@segment/facade
3.4.10
Current state
index.d.ts
.declare module ...
:Issue
@segment/facade
module, which results in an error:"Facade" is not exported by "node_modules/@segment/facade/index.d.ts", imported by "node_modules/@segment/analytics-next/dist/types/lib/to-facade.d.ts".
@segment/...
module that is using augmentation in type definitions.Proposition
declare module...
as it's not really needed as the types can be easily imported by using the module's name@segment/facade
declared inpackage.json
.export
modifier to theOptions
interface declaration, so that is can be consumed from outside:The text was updated successfully, but these errors were encountered: