X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils.ts;h=f77d84a97e6694d2c22cbdc0dd0a5bb97ab69f89;hb=6bb2a64f78c7ba84e4d3690d18c2f8ca9e418069;hp=d15f63c557e813aec9fdeeae7f993be8f8adedc4;hpb=260d2e6df285501c69e0d4f6d29fcd4b5266ed54;p=poolifier.git diff --git a/src/utils.ts b/src/utils.ts index d15f63c5..f77d84a9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,6 @@ -import * as os from 'node:os' import { getRandomValues } from 'node:crypto' +import * as os from 'node:os' + import type { KillBehavior } from './worker/worker-options.js' /** @@ -135,7 +136,7 @@ export const isPlainObject = (value: unknown): value is object => * * @typeParam KB - Which specific KillBehavior type to test against. * @param killBehavior - Which kind of kill behavior to detect. - * @param value - Any value. + * @param value - Unknown value. * @returns `true` if `value` was strictly equals to `killBehavior`, otherwise `false`. * @internal */