mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
Update propertiesMatcher.ts
This commit is contained in:
@@ -41,8 +41,6 @@ type GuardObject<A> =
|
|||||||
A extends {readonly type: TypeObject, readonly spec: infer B} ? (
|
A extends {readonly type: TypeObject, readonly spec: infer B} ? (
|
||||||
B extends Record<string, unknown> ? {readonly [K in keyof B & string]: _<GuardAll<B[K]>>} :
|
B extends Record<string, unknown> ? {readonly [K in keyof B & string]: _<GuardAll<B[K]>>} :
|
||||||
{_error: "Invalid Spec"}
|
{_error: "Invalid Spec"}
|
||||||
// B extends Record<string, unknown> ? {[K in keyof B]: GuardAll<B[K]>} :
|
|
||||||
// "a"
|
|
||||||
) :
|
) :
|
||||||
unknown
|
unknown
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user