Skip to content

rhea 2.0.7 breaks typings #91

@serratus

Description

@serratus

Describe the bug
TS build error

lib/connection.ts:107:44 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.

107 export interface ConnectionOptions extends RheaConnectionOptions {

To Reproduce

git clone [email protected]:amqp/rhea-promise.git
cd rhea-promise
npm run tsc

Expected behavior
The tsc build to succeed

Package-version: 2.1.0
node.js version: 16.1.0
OS name and version: macOS Big Sur, 11.6.2

Additional context
When pinning the dependency to "rhea": "2.0.6", the build succeeds without problems.

It seems like this issue was introduced with the latest changes amqp/rhea#375 which should have been a breaking change, not a patch-release.

Workaround
For anyone who's running into this issue, I recommend pinning rhea to 2.0.6 until this is resolved

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