chore: skip type during hydration

This commit is contained in:
Paul Makles
2023-04-09 14:13:55 +01:00
parent 324143791c
commit 0aeb0b8443
+1
View File
@@ -50,6 +50,7 @@ function hydrateInternal<Input extends object, Output>(
targetKey = hydration.keyMapping[key] ?? key;
value = hydration.functions[targetKey as keyof Output](input);
} catch (err) {
if (key === "type") return acc;
console.debug(`Skipping key ${String(key)} during hydration!`);
return acc;
}