Skip to content

@types/readable-stream says not to use Duplex.from #534

@10xLaCroixDrinker

Description

@10xLaCroixDrinker

When Node 12.5 was released, Duplex.from was marked deprecated in @types/readable-stream, with the note "This is a dummy function required to retain type compatibility to node." This doesn't seem to be the case anymore. Can we remove the deprecated tag?

@types/readable-stream/index.d.ts#L279-L284

    class Duplex extends _Writable implements _IDuplex, /*extends*/ _Readable, Duplex {
        /**
         * This is a dummy function required to retain type compatibility to node.
         * @deprecated DO NOT USE
         */
        static from(source: any): any;

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