tomSawkins / typed-get-prop

Strongly-typed function to get a nested & potentially null/undefined property value

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors with latest typescript

codeandcats opened this issue · comments

commented

Trying to build with latest TypeScript errors (many times)

src/index.ts:40:13 - error TS2589: Type instantiation is excessively deep and possibly infinite.

40 > = Defined<Defined5<T, K1, K2, K3, K4, K5>[K6]>;
commented

@tomSawkins I'm wondering if we should deprecate this library given:

  1. We get the above errors with latest TypeScript
  2. TypeScript is finally implementing the safe navigation operator in 3.7 making this library redundant
  3. There are other libraries that can be used in the meantime

Thoughts?