Skip to content

Commit

Permalink
change "fulfilled" to "resolved" in StatePromise
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Aug 7, 2022
1 parent a73cfdf commit c208bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2467,13 +2467,13 @@ Classes need to be created with the `new` keyword unless a method explicitly sta
> > | :-- | :-- |
> > | `initialized` | The StatePromise instance was created but the `exec()` method wasn't called yet |
> > | `pending` | The promise execution was started but it hasn't been resolved or rejected yet |
> > | `fulfilled` | Execution was finished and the promise was resolved |
> > | `resolved` | Execution was finished and the promise was resolved |
> > | `rejected` | Execution was finished but the promise was rejected |
> >
> > <br>
> >
> > ```ts
> > SelectionMenu.getState(): "initialized" | "pending" | "fulfilled" | "rejected"
> > SelectionMenu.getState(): "initialized" | "pending" | "resolved" | "rejected"
> > ```
>
>
Expand Down Expand Up @@ -2524,8 +2524,8 @@ Classes need to be created with the `new` keyword unless a method explicitly sta
> > Iteration #1 - State: pending
> > Iteration #2 - State: pending
> > THEN: test123
> > Iteration #3 - State: fulfilled
> > Iteration #4 - State: fulfilled
> > Iteration #3 - State: resolved
> > Iteration #4 - State: resolved
> > ```
> >
> > </details>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/StatePromise.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StatePromise

return new Promise((res, rej) => {
this.intPromise.then((...args) => {
this.state = "fulfilled";
this.state = "resolved";
return res(...args);
}).catch((...args) => {
this.state = "rejected";
Expand Down

0 comments on commit c208bf6

Please sign in to comment.