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
If you just want to get the `instance``value` if it is the given `tag` do not supply `defaultValue` or `getter`. It will return `null` if the instance is any other case.
### Why can't I call a constructor with no arguments?
681
+
682
+
80% of this library is type definitions. We could add the ability for some function signatures to be parameterless, but it just adds to the complexity of the library for a tiny syntax cost.
683
+
684
+
We tend to use `Record<string, never>` for these cases to enforce an empty object is passed in. But you could use `null`, or `undefined`. But you need to pass exactly 1 argument into your constructor.
0 commit comments