Type instantiation is excessively deep and possibly infinite

const m = <T, U>(type: Type<T, U>) => {
  return type.describe("test");
}

This used to work for me in in 2.0.0-dev.29. But upgrading to 2.0.0-rc.5 I get:
Type instantiation is excessively deep and possibly infinite.ts(2589)
(method) Type<out t = unknown, $ = {}>.describe(description: string): Type<T, U> | Type<T, U>
Was this page helpful?