Skip to content

Commit

Permalink
fix: typos (#3846)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Mar 22, 2024
1 parent 164d064 commit 5142574
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 5142574

Please sign in to comment.