MCPcopy Create free account
hub / github.com/Effect-TS/effect / resolverInt

Function resolverInt

packages/platform/node-shared/src/NodeDns.ts:381–381  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

379
380// Clamp resolver options to positive signed 32-bit integers; NaN becomes 1.
381const 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`

Callers 1

NodeDns.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected