implicitly has type 'any' because it does not have a type annotation #1657
Answered
by
JacobWeisenburger
productdevbook
asked this question in
Q&A
-
const LocationSchema = z.object({
aa: z.object({
title: z.string(),
}),
bb: z.object({
type: z.literal('Point'),
coordinates: z.array(z.number()),
}),
school: SchoolSchema,
}) const SchoolSchema = z.object({
title: z.string(),
address: z.string(),
locations: z.array(LocationSchema),
}) 'LocationSchema' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.ts(7022) |
Beta Was this translation helpful? Give feedback.
Answered by
JacobWeisenburger
Dec 9, 2022
Replies: 1 comment 1 reply
-
These might be helpful for you: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JacobWeisenburger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These might be helpful for you:
Recursive types
Cyclical objects