Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Aug 18, 2023
1 parent cc85af0 commit 3c64839
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 82 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ const userModule = defineModule({
},
},
actions: {
/**
* @param {number} payload
*/
async setName({ commit }, payload) {
async setName({ commit }, /** @type {string} */ payload) {
commit('SET_NAME', await getUserById(payload))
// ^ commit type and `payload` type are specific
},
Expand Down
6 changes: 0 additions & 6 deletions playground/src/store/getters.js

This file was deleted.

72 changes: 0 additions & 72 deletions playground/src/store/helper.d.ts

This file was deleted.

0 comments on commit 3c64839

Please sign in to comment.