nango icon indicating copy to clipboard operation
nango copied to clipboard

fix(Provider): proxy is optional

Open bodinsamuel opened this issue 1 year ago • 3 comments

Describe your changes

Following the eslint upgrade it now removes unnecessary ? so it broke my setup locally. Proxy is optional because of unauthenticated provider.

  • Set proxy as optional

bodinsamuel avatar May 03 '24 17:05 bodinsamuel

My sense is that the types aren’t always completely correct and so removing the optional ? is going to break more things. The linter gives us false confidence to delete ? willy nilly — so to speak

khaliqgant avatar May 03 '24 17:05 khaliqgant

My sense is that the types aren’t always completely correct and so removing the optional ? is going to break more things. > The linter gives us false confidence to delete ? willy nilly — so to speak

we can disable the rule for the moment, wdyt?

bodinsamuel avatar May 03 '24 17:05 bodinsamuel

My sense is that the types aren’t always completely correct and so removing the optional ? is going to break more things. > The linter gives us false confidence to delete ? willy nilly — so to speak

we can disable the rule for the moment, wdyt?

Yeah I think so. Don’t want it to bite us

khaliqgant avatar May 03 '24 17:05 khaliqgant

Disabled 👌🏻 but we should aim to have better types, this kind of unnecessary condition also makes the code slower and shaky

bodinsamuel avatar May 05 '24 13:05 bodinsamuel

Disabled 👌🏻 but we should aim to have better types, this kind of unnecessary condition also makes the code slower and shaky

100% agree

khaliqgant avatar May 05 '24 17:05 khaliqgant

My sense is that the types aren’t always completely correct and so removing the optional ? is going to break more things. The linter gives us false confidence to delete ? willy nilly — so to speak

Case in point: https://github.com/NangoHQ/nango/pull/2099 as reported https://nango-community.slack.com/archives/C04ABR352H0/p1714974911347219

khaliqgant avatar May 06 '24 07:05 khaliqgant