chore: generate
This commit is contained in:
@@ -18,9 +18,7 @@ export const Entry = z.union([
|
||||
}),
|
||||
])
|
||||
|
||||
export const Info = z
|
||||
.union([z.literal(false), z.record(z.string(), Entry)])
|
||||
.refine(
|
||||
export const Info = z.union([z.literal(false), z.record(z.string(), Entry)]).refine(
|
||||
(data) => {
|
||||
if (typeof data === "boolean") return true
|
||||
const serverIds = new Set(Object.values(LSPServer).map((server) => server.id))
|
||||
@@ -34,6 +32,6 @@ export const Info = z
|
||||
{
|
||||
error: "For custom LSP servers, 'extensions' array is required.",
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
export type Info = z.infer<typeof Info>
|
||||
|
||||
Reference in New Issue
Block a user