Skip to content

Commit

Permalink
chore: preserve type thru makeStateRecord()
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jul 3, 2024
1 parent 5c0ea36 commit e12036c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/async-flow/src/endowments.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ export const forwardingMethods = rem => {
* gets and sets, but is implemented using accessors, so it will be recognized
* as a state record.
*
* @param {object} dataRecord
* @returns {object}
* @template { string | number | symbol } K
* @template {Record<K, any>} R
* @param {R} dataRecord
* @returns {R}
*/
export const makeStateRecord = dataRecord =>
harden(
Expand Down

0 comments on commit e12036c

Please sign in to comment.