You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I'm being to strict with errors when methods are called on invalid states.
I could introduce a strict option with default set to false to console.warn in these cases instead of erroring out.
Is there a prettier way of having all these error condition checks without affecting the human parsability of the code?
The text was updated successfully, but these errors were encountered:
I feel like I'm being to strict with errors when methods are called on invalid states.
I could introduce a
strict
option with default set tofalse
toconsole.warn
in these cases instead of erroring out.Is there a prettier way of having all these error condition checks without affecting the human parsability of the code?
The text was updated successfully, but these errors were encountered: