Skip to content

Commit

Permalink
refactor: tagged -> item for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 23, 2021
1 parent 4d3d591 commit 7e69920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ workerLog(`supervisor started`);
*/
function ManagerPort(issueCommand) {
/** @type { (item: Tagged) => ArrayBuffer } */
const encode = tagged => encoder.encode(JSON.stringify(tagged)).buffer;
const encode = item => encoder.encode(JSON.stringify(item)).buffer;

/** @type { (msg: ArrayBuffer) => any } */
const decodeData = msg => JSON.parse(decoder.decode(msg));
Expand Down

0 comments on commit 7e69920

Please sign in to comment.