Skip to content

Latest releast breaks -noImplicitAny typescript builds. #950

@CyrusNajmabadi

Description

@CyrusNajmabadi

The latest release of grpc-node cannot be used in a typescript project that uses -noImplicitAny. This is due to a signature being added without a specified return type. This causes the return type to implicitly be 'any' which TS explicitly disallows. For projects that use strict flags to catch lots of bugs, this prevents usage of this version of grpc entirely.

Fix is simple, just actually provide an annotation for this method.

See PR #949 for location of the issue and the proposed fix.

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