File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 * */
2224export 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} ;
You can’t perform that action at this time.
0 commit comments