We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caec3cf commit 4821112Copy full SHA for 4821112
src/util.ts
@@ -6,7 +6,7 @@ import type { EditableConfig } from './interface';
6
* We trade Map as deps which may change with same value but different ref object.
7
* We should make it as hash for deps
8
* */
9
-export function stringify<K extends string | number | symbol, V>(obj: Record<K, V> | Map<K, V>) {
+export function stringify<K extends PropertyKey, V>(obj: Record<K, V> | Map<K, V>) {
10
let tgt: Record<K, V>;
11
12
if (obj instanceof Map) {
0 commit comments