MCPcopy
hub / github.com/gitify-app/gitify / volumePercentageToLevel

Function volumePercentageToLevel

src/renderer/utils/ui/volume.ts:13–15  ·  view source on GitHub ↗
(percentage: Percentage)

Source from the content-addressed store, hash-verified

11 * @returns Volume level in the range `0.0`–`1.0`.
12 */
13export function volumePercentageToLevel(percentage: Percentage): number {
14 return percentage / 100;
15}
16
17/**
18 * Returns `true` if the volume can be decreased by one step.

Callers 2

volume.test.tsFile · 0.90
raiseSoundNotificationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected