Function
getNormalizedChangelogOption
(
thing: false | readonly [string, any] | string
)
Source from the content-addressed store, hash-verified
| 32 | } |
| 33 | |
| 34 | function 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 | |
| 46 | function getNormalizedCommitOption( |
| 47 | thing: boolean | readonly [string, any] | string |
Tested by
no test coverage detected