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
Since version 4.0.0, it is possible to write your own constraint strategies. In the index.d.ts, however, it is specified that the values for the constraints must be strings. So my question is whether it is safe to also take object as values, as in the example below.
Since version 4.0.0, it is possible to write your own constraint strategies. In the index.d.ts, however, it is specified that the values for the constraints must be strings. So my question is whether it is safe to also take object as values, as in the example below.
Current typing in index.d.ts:
Example with an object as key instead of a string:
Could be typed in the index.d.ts like this:
The text was updated successfully, but these errors were encountered: