Skip to content

Commit

Permalink
Type fixes for the type handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Sep 9, 2023
1 parent 4b5c5e6 commit 9de5766
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": [
"eslint:recommended",
"plugin:compat/recommended",
"plugin:jsdoc/recommended-typescript-flavor",
"plugin:jsdoc/recommended",
"ultraq"
],
"parser": "@babel/eslint-parser",
Expand Down
2 changes: 1 addition & 1 deletion source/MessageFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class MessageFormatter {
* string renderer.
*
* @param {string} message
* @param {FormatValues} values
* @param {FormatValues} [values]
* @return {any[]}
*/
process(message, values = {}) {
Expand Down
4 changes: 2 additions & 2 deletions source/pluralTypeHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function replaceNumberSign(caseBody, value) {
* @param {string} value
* @param {string} matches
* @param {string} locale
* @param {FormatValues} values
* @param {ProcessFunction} process
* @param {Record<string,any>} values
* @param {(message: string, values?: Record<string,any>) => any[]} process
* @return {any | any[]}
*/
export default function pluralTypeHandler(value, matches = '', locale, values, process) {
Expand Down
4 changes: 2 additions & 2 deletions source/selectTypeHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const OTHER = 'other';
* @param {string} value
* @param {string} matches
* @param {string} locale
* @param {FormatValues} values
* @param {ProcessFunction} process
* @param {Record<string,any>} values
* @param {(message: string, values?: Record<string,any>) => any[]} process
* @return {any | any[]}
*/
export default function selectTypeHandler(value, matches = '', locale, values, process) {
Expand Down

0 comments on commit 9de5766

Please sign in to comment.