Skip to content

Commit 8e571e8

Browse files
authored
Merge pull request #760 from webermayank/webermayank/fixed-issue-#759
fixed issue invalid Content Entry Formatter error - #759
2 parents 780f4b8 + edf75ee commit 8e571e8

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)