From b23724fd3c2730c12e1e6eced563b884454ec635 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Thu, 2 Jan 2025 12:22:40 -0800 Subject: [PATCH] refactor: cleanup type warning --- packages/ses/src/error/console.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ses/src/error/console.js b/packages/ses/src/error/console.js index 44259e725c..93893cd466 100644 --- a/packages/ses/src/error/console.js +++ b/packages/ses/src/error/console.js @@ -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 });