Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Optional Support For Multiple References to an Object#1088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BellCubeDev wants to merge9 commits intoimmerjs:main
base:main
Choose a base branch
Loading
fromBellCubeDev:main
Open
Changes from1 commit
Commits
Show all changes
9 commits
Select commitHold shift + click to select a range
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
PrevPrevious commit
Merge branch 'main' into main
  • Loading branch information
@BellCubeDev
BellCubeDev authoredAug 14, 2025
commitced0ff7b424ef41df8e34f40e48ee7ab969867a5
6 changes: 3 additions & 3 deletionssrc/core/immerClass.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,12 +35,12 @@ export type StrictMode = boolean | "class_only";

export class Immer implements ProducersFns {
autoFreeze_: boolean = true
useStrictShallowCopy_:boolean = false
useStrictShallowCopy_:StrictMode = false
allowMultiRefs_: boolean = false

constructor(config?: {
autoFreeze?: boolean
useStrictShallowCopy?:boolean
useStrictShallowCopy?:StrictMode
allowMultiRefs: boolean
}) {
if (typeof config?.autoFreeze === "boolean")
Expand DownExpand Up@@ -185,7 +185,7 @@ export class Immer implements ProducersFns {
this.allowMultiRefs_ = value
}

applyPatches<T extends Objectish>(base: T, patches: Patch[]): T {
applyPatches<T extends Objectish>(base: T, patches:readonlyPatch[]): T {
// If a patch replaces the entire state, take that replacement as base
// before applying patches
let i: number
Expand Down
You are viewing a condensed version of this merge commit. You can view thefull changes here.

[8]ページ先頭

©2009-2025 Movatter.jp