Skip to content

Class 'Tuntap' incorrectly implements interface 'TuntapI' #16

@stefanwerfling

Description

@stefanwerfling

With the update to the latest 18.x version of nodejs ("@types/node": "^18.19.33",) there were many new methods in the interface. Could you clarify this issue?

3.066   SOLINK_MODULE(target) Release/obj.target/tuntap2Addon.node
3.170   COPY Release/tuntap2Addon.node
3.175 make: Leaving directory '/opt/flyingfish/node_modules/tuntap2/build'
3.177 gyp info ok 
8.059 src/ts/Tuntap.ts(4,14): error TS2420: Class 'Tuntap' incorrectly implements interface 'TuntapI'.
8.059   Type 'Tuntap' is missing the following properties from type 'TuntapI': iterator, map, filter, forEach, and 10 more.

image

These come from the duplex interface:
export interface TuntapI extends Duplex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions