-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
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
AndrewBoklashko
Metadata
Metadata
Assignees
Labels
No labels