Update propertiesMatcher.ts

This commit is contained in:
J M
2022-12-12 11:32:02 -07:00
committed by GitHub
parent 1e1ffe0f93
commit 845138ee9f

View File

@@ -41,8 +41,6 @@ type GuardObject<A> =
A extends {readonly type: TypeObject, readonly spec: infer B} ? (
B extends Record<string, unknown> ? {readonly [K in keyof B & string]: _<GuardAll<B[K]>>} :
{_error: "Invalid Spec"}
// B extends Record<string, unknown> ? {[K in keyof B]: GuardAll<B[K]>} :
// "a"
) :
unknown