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
When accessing a view with a composite key (e.g. something like ['This', 'is', 'a', 'key', 123], the key type in the DocumentViewResponse<V,D>.rows field is statically defined as string. I can cast it to unknown and then to any[] (which would be correct in my case), but that seems to be cumbersome to me. Am I using the interface wrong or is this type definition insufficient.
Something rather odd as a side note: my nano version is 8.1.0, but when opening the type definition file, it says "// Type definitions for nano 6.4" at the top. This is a fresh, clean install into a new project.
The text was updated successfully, but these errors were encountered:
When accessing a view with a composite key (e.g. something like
['This', 'is', 'a', 'key', 123]
, the key type in theDocumentViewResponse<V,D>.rows
field is statically defined asstring
. I can cast it tounknown
and then toany[]
(which would be correct in my case), but that seems to be cumbersome to me. Am I using the interface wrong or is this type definition insufficient.Something rather odd as a side note: my nano version is 8.1.0, but when opening the type definition file, it says "// Type definitions for nano 6.4" at the top. This is a fresh, clean install into a new project.
The text was updated successfully, but these errors were encountered: