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 b61ee71 commit 184eb7eCopy full SHA for 184eb7e
src/build/patches.ts
@@ -34,7 +34,7 @@ function optionalMember<const T>(
34
// Support deep property assignment, e.g. prop = "a.b.c"
35
const propPath = prop.split(".");
36
if (typeof value !== type) {
37
- throw new Error(`Expected type ${type} for ${prop}`);
+ throw new Error(`Expected type ${value} for ${prop}`);
38
}
39
// If value is an object, ensure it is not empty (has at least one key)
40
if (type === "object" && typeof value === "object" && value !== null) {
0 commit comments