Skip to content

Commit 4821112

Browse files
authored
refactor: use PropertyKey instaed of key list (#728)
1 parent caec3cf commit 4821112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { EditableConfig } from './interface';
66
* We trade Map as deps which may change with same value but different ref object.
77
* We should make it as hash for deps
88
* */
9-
export function stringify<K extends string | number | symbol, V>(obj: Record<K, V> | Map<K, V>) {
9+
export function stringify<K extends PropertyKey, V>(obj: Record<K, V> | Map<K, V>) {
1010
let tgt: Record<K, V>;
1111

1212
if (obj instanceof Map) {

0 commit comments

Comments
 (0)