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

Function getNormalizedChangelogOption

packages/config/src/index.ts:34–44  ·  view source on GitHub ↗
(
  thing: false | readonly [string, any] | string
)

Source from the content-addressed store, hash-verified

32}
33
34function getNormalizedChangelogOption(
35 thing: false | readonly [string, any] | string
36): Config["changelog"] {
37 if (thing === false) {
38 return false;
39 }
40 if (typeof thing === "string") {
41 return [thing, null];
42 }
43 return thing;
44}
45
46function getNormalizedCommitOption(
47 thing: boolean | readonly [string, any] | string

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected