MCPcopy Create free account
hub / github.com/webpack/webpack-cli / isPromise

Method isPromise

packages/webpack-cli/src/webpack-cli.ts:576–578  ·  view source on GitHub ↗
(value: Promise<T>)

Source from the content-addressed store, hash-verified

574 }
575
576 isPromise<T>(value: Promise<T>): value is Promise<T> {
577 return typeof (value as unknown as Promise<T>).then === "function";
578 }
579
580 isFunction(value: unknown): value is CallableFunction {
581 return typeof value === "function";

Callers 1

loadConfigByPathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected