Skip to content

Commit

Permalink
refactor: cleanup type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 2, 2025
1 parent fdb6074 commit b23724f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ses/src/error/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import {
* https://tc39.es/ecma262/multipage/syntax-directed-operations.html#sec-runtime-semantics-namedevaluation
* Instead, we hope that tooling uses only the explicit `name` property.
*
* @template {function} T
* @template {Function} F
* @param {string} name
* @param {T} fn
* @returns {T}
* @param {F} fn
* @returns {F}
*/
const defineName = (name, fn) => defineProperty(fn, 'name', { value: name });

Expand Down

0 comments on commit b23724f

Please sign in to comment.