Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definitions and views with composite keys #182

Open
DerNamenlose opened this issue Sep 25, 2019 · 2 comments
Open

Typescript definitions and views with composite keys #182

DerNamenlose opened this issue Sep 25, 2019 · 2 comments

Comments

@DerNamenlose
Copy link

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.

@egriff38
Copy link

Any update on this? I'm facing the same issue

@epacke
Copy link

epacke commented Nov 29, 2020

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants