Skip to content

Commit 4504582

Browse files
committed
more jsdoc and todo.
1 parent 843bea7 commit 4504582

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

express-zod-api/src/metadata.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ export const getBrand = (subject: $ZodType) => {
1616
};
1717

1818
/**
19-
* @since zod 3.25.44
19+
* @since zod 3.25.44 can be an object
2020
* @link https://github.com/colinhacks/zod/pull/4586
21+
* @since zod 3.25.68 and 4.0.0 was completely removed
22+
* @link https://github.com/colinhacks/zod/commit/ee5615d76b93aac15d7428a17b834a062235f6a1
2123
* */
2224
export const getExamples = (subject: $ZodType): ReadonlyArray<unknown> => {
2325
const { examples, example } = globalRegistry.get(subject) || {};
@@ -29,5 +31,6 @@ export const getExamples = (subject: $ZodType): ReadonlyArray<unknown> => {
2931
.filter((one) => isObject(one) && "value" in one)
3032
.map(({ value }) => value);
3133
}
34+
/** @todo remove this in v25 */
3235
return example === undefined ? [] : [example];
3336
};

0 commit comments

Comments
 (0)