immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type WritableDraft is not exported in v10

plantain-00 opened this issue Β· comments

πŸ› Bug Report

// v9
import { WritableDraft  } from "immer/dist/types/types-external"

// v10 but not exported
import { WritableDraft  } from "immer"

Link to repro

To Reproduce

Observed behavior

Expected behavior

Environment

We only accept bug reports against the latest Immer version.

  • Immer version:
  • I filed this report against the latest version of Immer
  • Occurs with setUseProxies(true)
  • Occurs with setUseProxies(false) (ES5 only)

I use Draft instead.