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 we want to create an interface and extends DocumentViewResponse for the result of db.view function, we can't provide other types other than string for key property of view. Suppose I use an array as my key like [date, tag] or a number as my key. So I need to define other types than string for my key in interface.
Expected Behavior
If we want to create an interface and extends
DocumentViewResponse
for the result ofdb.view
function, we can't provide other types other than string for key property of view. Suppose I use an array as my key like[date, tag]
or a number as my key. So I need to define other types than string for my key in interface.Current Behavior
This will not work:
Possible Solution
Add other types to key like
key: string | string[] | etc
The text was updated successfully, but these errors were encountered: