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 8ffb44c commit b61ee71Copy full SHA for b61ee71
src/build/patches.ts
@@ -34,9 +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(
38
- `Expected type ${type} for ${prop} but got ${typeof value}`,
39
- );
+ throw new Error(`Expected type ${type} for ${prop}`);
40
}
41
// If value is an object, ensure it is not empty (has at least one key)
42
if (type === "object" && typeof value === "object" && value !== null) {
0 commit comments