(value: number)
| 379 | |
| 380 | // Clamp resolver options to positive signed 32-bit integers; NaN becomes 1. |
| 381 | const resolverInt = (value: number): number => value >= 1 ? Math.min(value, 2 ** 31 - 1) : 1 |
| 382 | |
| 383 | /** |
| 384 | * Creates a function that queries DNS records with the runtime's `node:dns` |