Skip to content

Commit edf75ee

Browse files
committed
fixed deprecated - expected string got boolean issue#759
1 parent 5e33438 commit edf75ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/reference/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export const referenceSchema = z.object({
6464
submodule: z.string().optional(),
6565
file: z.string(),
6666
description: z.string().optional(),
67-
deprecated: z.string().optional(),
67+
deprecated: z.string().or(
68+
z.boolean().transform(() => 'This will be removed in a future version of p5.js.')
69+
).optional(),
6870
line: z.number().or(z.string().transform((v) => parseInt(v, 10))),
6971
params: z.array(paramSchema).optional(),
7072
overloads: z.array(z.object({ params: z.array(paramSchema) })).optional(),

0 commit comments

Comments
 (0)