Skip to content

Commit

Permalink
test: confirm jsdoc-type-pratt-parser handles destructuring of reserv…
Browse files Browse the repository at this point in the history
…ed word; closes #776
  • Loading branch information
brettz9 committed Feb 12, 2022
1 parent 32447f0 commit 1fed4eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/rules/assertions/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1588,5 +1588,27 @@ export default {
`,
ignoreReadme: true,
},
{
code: `
/**
* @param {Store} context
* @param {Store.commit} context.commit
* @param {Store.getters} context.getters
* @param {Store.dispatch} context.dispatch
* @param {object} payload
* @param {object} payload.new
* @param {string} payload.libraryType
*/
const updateStyleVersion = async (
{ commit, getters, dispatch },
{ new: newPayload, libraryType }
) => {
}
`,
ignoreReadme: true,
parserOptions: {
ecmaVersion: 2_017,
},
},
],
};

0 comments on commit 1fed4eb

Please sign in to comment.