Skip to content

Commit ca3c7b6

Browse files
chore: Remove impossible void type from replacer's uneval (#116)
1 parent 8fb152e commit ca3c7b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/some-buttons-scream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"devalue": patch
3+
---
4+
5+
chore: Remove impossible `void` type from replacer's `uneval`

src/uneval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const reserved =
1717
/**
1818
* Turn a value into the JavaScript that creates an equivalent value
1919
* @param {any} value
20-
* @param {(value: any, uneval: (value: any) => string | void) => string | void} [replacer]
20+
* @param {(value: any, uneval: (value: any) => string) => string | void} [replacer]
2121
*/
2222
export function uneval(value, replacer) {
2323
const counts = new Map();

0 commit comments

Comments
 (0)