12 lines
		
	
	
		
			290 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			290 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { parseAnyDef } from "./any.js";
 | |
| export function parseNeverDef(refs) {
 | |
|     return refs.target === "openAi"
 | |
|         ? undefined
 | |
|         : {
 | |
|             not: parseAnyDef({
 | |
|                 ...refs,
 | |
|                 currentPath: [...refs.currentPath, "not"],
 | |
|             }),
 | |
|         };
 | |
| }
 |