Skip to content

Commit

Permalink
Update function types in JSDoc annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jul 28, 2023
1 parent d2ffe7a commit 2fbddf5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cordova/import_messages.action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ async function loadMessages() {

/**
* Imports message translations.
* @param {Function} getStringsFilepath A function to get a filepath to
* read/write strings for a given locale.
* @param {Function} readMessages A function to read required messages.
* @param {Function} writeMessages A function to write the output messages.
* @param {function(string): string} getStringsFilepath A function to get a
* filepath to read/write strings for a given locale.
* @param {function(): Map<string, string>} readMessages A function to read
* required messages.
* @param {function(string, Map<string, string>)} writeMessages A function to
* write the output messages.
*/
async function importMessages(getStringsFilepath, readMessages, writeMessages) {
const requiredMessages = await readMessages();
Expand Down

0 comments on commit 2fbddf5

Please sign in to comment.