MCPcopy
hub / github.com/MALSync/MALSync / callback

Class callback

src/utils/mangaProgress/modes/callback.ts:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * @description If possible use a different mode instead of this one.
9 */
10export class callback extends ModeAbstract<arguments> {
11 execute(args: arguments) {
12 const textString = args.callback();
13
14 const n = Number(textString);
15 if (Number.isNaN(n)) throw new Error(`No number found in text '${textString}' (${n})`);
16
17 return n;
18 }
19}

Callers 6

notifyListenersMethod · 0.50
shortcutDetectedFunction · 0.50
urlChangeDetectFunction · 0.50
fullUrlChangeDetectFunction · 0.50
changeDetectFunction · 0.50
waitUntilTrueFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected