Skip to content

Commit

Permalink
chore: some minor code renames (#2493)
Browse files Browse the repository at this point in the history
* fix: spell for executeAction params word

* fix: spell for _startAction params and ComputedValuew constructor annotation word

* fix: words spell error at the file of makeObservable

* fix: rename params clazz at utils createInstanceofPredicate function to know what means about the param
  • Loading branch information
Rain120 committed Oct 17, 2020
1 parent 0c8e460 commit 509de1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export function assertPropertyConfigurable(object: any, prop: PropertyKey) {

export function createInstanceofPredicate<T>(
name: string,
clazz: new (...args: any[]) => T
theClass: new (...args: any[]) => T
): (x: any) => x is T {
const propName = "isMobX" + name
clazz.prototype[propName] = true
theClass.prototype[propName] = true
return function (x) {
return isObject(x) && x[propName] === true
} as any
Expand Down

0 comments on commit 509de1d

Please sign in to comment.