Skip to content

Type conflict with @types/amplitude #17

@calvinkcox-divvyhomes

Description

@calvinkcox-divvyhomes

Due to a namespace declaration there is currently a conflict in typing between @types/amplitude and this library. I see this has been removed in both #15 and #16 but am curious if there will be a released fix soon. This is preventing our application from building correctly.

See:

node_modules/@amplitude/experiment-js-client/dist/types/src/integration/amplitude.d.ts:5:9 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'amplitude' must be of type 'typeof import(".../node_modules/@types/amplitude-js/index")', but here has type 'any'.

5     var amplitude: any;
          ~~~~~~~~~

  node_modules/@types/amplitude-js/index.d.ts:8:1
    8 export as namespace amplitude;
      ~~~~~~
    'amplitude' was also declared here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions