MCPcopy Index your code
hub / github.com/changesets/changesets / havePackageGroupsCorrectShape

Function havePackageGroupsCorrectShape

packages/config/src/index.ts:71–81  ·  view source on GitHub ↗
(
  pkgGroups: ReadonlyArray<PackageGroup>
)

Source from the content-addressed store, hash-verified

69}
70
71const havePackageGroupsCorrectShape = (
72 pkgGroups: ReadonlyArray<PackageGroup>
73) => {
74 return (
75 isArray(pkgGroups) &&
76 pkgGroups.every(
77 (arr) =>
78 isArray(arr) && arr.every((pkgName) => typeof pkgName === "string")
79 )
80 );
81};
82
83// TODO: it might be possible to remove this if improvements to `Array.isArray` ever land
84// related thread: github.com/microsoft/TypeScript/issues/36554

Callers 1

parseFunction · 0.85

Calls 1

isArrayFunction · 0.85

Tested by

no test coverage detected