Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/immer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
IProduceWithPatches,
Immer,
Draft,
Immutable
Immutable,
NOTHING as nothing
} from "./internal"

export {
Expand All @@ -17,13 +18,14 @@ export {
current,
isDraft,
isDraftable,
NOTHING as nothing,
DRAFTABLE as immerable,
freeze,
Objectish,
StrictMode
} from "./internal"

export {nothing}

const immer = new Immer()

/**
Expand Down Expand Up @@ -124,3 +126,7 @@ export {Immer}
export {enablePatches} from "./plugins/patches"
export {enableMapSet} from "./plugins/mapset"
export {enableArrayMethods} from "./plugins/arrayMethods"

export function isNothing(value: unknown): value is typeof nothing {
return value === nothing
}
Loading