TypeScript Support: Enhance compatibility by skipping ReadonlyMap and ReadonlySet types when they are not available. This change ensures smoother usage of Immer in TypeScript projects targeting es5.
Fixes
Fix the issue where ReadonlyMap and ReadonlySet types are unavailable when targeting es5. This resolves the bug that caused the Draft type to malfunction in certain TypeScript configurations.