Skip to content

noproxy: true type mismatch #413

@unrealsolver

Description

@unrealsolver

When using .get with {noproxy: true} the return type stated as Immutable<S>, however should be just S.

get(options?: { noproxy?: boolean, stealth?: boolean }): Immutable<S>;

Due to the implementation details, it would be hard to write a conditional type here. Options are:

  • Create a .getBare or .getSource method or something similar, which would have noproxy behavior
  • Change options? to positional args with conditional types

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