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
When using .get with
{noproxy: true}the return type stated asImmutable<S>, however should be justS.Due to the implementation details, it would be hard to write a conditional type here. Options are:
.getBareor.getSourcemethod or something similar, which would have noproxy behavioroptions?to positional args with conditional types