Ensure inline docs and comments are accurate, clear, and justified:
@default tag).Example:
interface Options {
/** Registry used to look up metadata. */
metadata?: $ZodRegistry<Record<string, any>>;
/** Target JSON Schema version.
* - "draft-2020-12" — Default.
* - "draft-7"
*/
target?: "draft-7" | "draft-2020-12";
}
// Clearly document uncommon terms/encodings
get isBase64url() {
// base64url is a URL-safe variant of base64 encoding ("-" and "_" instead of "+" and "/").
return !!this._def.checks.find((ch) => ch.kind === "base64url");
}
// Always explain ignore directives
// biome-ignore lint/complexity/noBannedTypes: `{}` is intentionally used here as the empty object type.
type T = {};
Enter the URL of a public GitHub repository