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

Entry/Entries #132

Open
dimitropoulos opened this issue Jan 30, 2020 · 0 comments
Open

Entry/Entries #132

dimitropoulos opened this issue Jan 30, 2020 · 0 comments

Comments

@dimitropoulos
Copy link
Contributor

I would like to gauge interest in this before making a PR.

Is your feature request related to a real problem or use-case?

  • I am using Object.entries.
  • I am using toPairs (ramda, lodash) in the context of a pipe (ramda, lodash), and want to access the type of the entries in terms of the original object.

Describe a solution including usage in code example

export type Entry<T> = [keyof T, T[keyof T]];
export type Entries<T> = Entry<T>[];

Who does this impact? Who is this for?

Anyone using object entries.

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

1 participant