Skip to content

Commit

Permalink
refactor: cleanup type warning (#2680)
Browse files Browse the repository at this point in the history
Closes: #XXXX
Refs: #XXXX

## Description

Was getting the irritating warning


![image](https://github.com/user-attachments/assets/257b1512-2f46-46c4-88e4-3b9f4b22db81)

This PR simply does what that warning suggests.

Verified that with this change
- `yarn lint` runs clean without any warnings.
- `lint` under CI below passes
- No "Unchanged files with check annotations" warnings appear in this
PR's code review page.

### Security Considerations

none
### Scaling Considerations

none
### Documentation Considerations

none
### Testing Considerations

none
### Compatibility Considerations

none
### Upgrade Considerations

none
  • Loading branch information
erights authored Jan 3, 2025
1 parent fdb6074 commit e02b0f6
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 e02b0f6

Please sign in to comment.