diff --git a/docs.md b/docs.md index 0bf86c7..39c48b5 100644 --- a/docs.md +++ b/docs.md @@ -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 | > > > >
> > > > ```ts -> > SelectionMenu.getState(): "initialized" | "pending" | "fulfilled" | "rejected" +> > SelectionMenu.getState(): "initialized" | "pending" | "resolved" | "rejected" > > ``` > > @@ -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 > > ``` > > > > diff --git a/src/classes/StatePromise.js b/src/classes/StatePromise.js index 98d579a..24055c6 100644 --- a/src/classes/StatePromise.js +++ b/src/classes/StatePromise.js @@ -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";