MCPcopy
hub / github.com/electron/forge / hidePromiseFromPromisify

Function hidePromiseFromPromisify

packages/api/core/src/api/package.ts:75–81  ·  view source on GitHub ↗

* @deprecated Only use until \@electron/packager publishes a new major version with promise based hooks

(
  fn: (...args: P) => Promise<void>,
)

Source from the content-addressed store, hash-verified

73 * @deprecated Only use until \@electron/packager publishes a new major version with promise based hooks
74 */
75function hidePromiseFromPromisify<P extends unknown[]>(
76 fn: (...args: P) => Promise<void>,
77): (...args: P) => void {
78 return (...args: P) => {
79 void fn(...args);
80 };
81}
82
83/**
84 * Runs given hooks sequentially by mapping them to promises and iterating

Callers 3

sequentialHooksFunction · 0.85
listrPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected