Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Fix typing of generics #34

Open
wielrls opened this issue May 3, 2019 · 0 comments
Open

Fix typing of generics #34

wielrls opened this issue May 3, 2019 · 0 comments

Comments

@wielrls
Copy link
Contributor

wielrls commented May 3, 2019

Repro:

const fn = <K extends { prop: string }>(v: K) =>  {
  const t = oc(v).prop();
}

t is typed as any (vs of string | undefined)

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

No branches or pull requests

1 participant