Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos #3846

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/mobx/src/api/autorun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export function reaction<T, FireImmediately extends boolean = false>(
value = nextValue
})

// This casting is nesessary as TS cannot infer proper type in current funciton implementation
// This casting is nesessary as TS cannot infer proper type in current function implementation
type OldValue = FireImmediately extends true ? T | undefined : T
if (firstTime && opts.fireImmediately!) {
effectAction(value, oldValue as OldValue, r)
Expand Down
2 changes: 1 addition & 1 deletion packages/mobx/src/types/legacyobservablearray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class LegacyObservableArray<T> extends StubArray {
}

if (safariPrototypeSetterInheritanceBug) {
// Seems that Safari won't use numeric prototype setter untill any * numeric property is
// Seems that Safari won't use numeric prototype setter until any * numeric property is
// defined on the instance. After that it works fine, even if this property is deleted.
Object.defineProperty(this, "0", ENTRY_0)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/mobx/src/types/observablearray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ function simpleFunc(funcName) {
}
}

// Make sure callbacks recieve correct array arg #2326
// Make sure callbacks receive correct array arg #2326
function mapLikeFunc(funcName) {
return function (callback, thisArg) {
const adm: ObservableArrayAdministration = this[$mobx]
Expand All @@ -575,7 +575,7 @@ function mapLikeFunc(funcName) {
}
}

// Make sure callbacks recieve correct array arg #2326
// Make sure callbacks receive correct array arg #2326
function reduceLikeFunc(funcName) {
return function () {
const adm: ObservableArrayAdministration = this[$mobx]
Expand Down