MCPcopy Index your code
hub / github.com/nodejs/corepack / isValidBinList

Function isValidBinList

sources/corepackUtils.ts:135–137  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

133}
134
135function isValidBinList(x: unknown): x is BinList {
136 return Array.isArray(x) && x.length > 0;
137}
138
139function isValidBinSpec(x: unknown): x is BinSpec {
140 return typeof x === `object` && x !== null && !Array.isArray(x) && Object.keys(x).length > 0;

Callers 1

installVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…