Closed cefn closed 10 months ago
As I recall, we kept to our own watchable type definition for Immutable because the vendor Immutable definitions we tried to use were routinely causing stack overflows in the compiler... https://github.com/ts-essentials/ts-essentials/issues/194
Immutable
It's worth trying the version from Immer, especially since improvements in Typescript could eliminate some of this explosion. It also has an inverse operation (Draft). See https://github.com/immerjs/immer/blob/main/src/types/types-external.ts#L51
Completed in https://github.com/cefn/watchable/pull/42
As I recall, we kept to our own watchable type definition for
Immutable
because the vendorImmutable
definitions we tried to use were routinely causing stack overflows in the compiler... https://github.com/ts-essentials/ts-essentials/issues/194It's worth trying the version from Immer, especially since improvements in Typescript could eliminate some of this explosion. It also has an inverse operation (Draft). See https://github.com/immerjs/immer/blob/main/src/types/types-external.ts#L51