MCPcopy Create free account
hub / github.com/capawesome-team/capacitor-plugins / decrease

Method decrease

packages/badge/src/web.ts:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 public async decrease(): Promise<void> {
50 const { count } = await this.get();
51 if (count < 1) {
52 return;
53 }
54 await this.set({ count: count - 1 });
55 }
56
57 public async clear(): Promise<void> {
58 await this.set({ count: 0 });

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected