Documentation

@kanunilabs/pivotgrid-enterprise


@kanunilabs/pivotgrid-enterprise / resolvePeer

Function: resolvePeer()

resolvePeer<T>(spec): Promise<T | undefined>

Resolve an optional peer, or undefined with one actionable warning.

Never throws: a missing export dependency must degrade to "this button does nothing and the console says why", not to an unhandled rejection inside a click handler.

Type Parameters

T

T

Parameters

spec

PeerSpec<T>

Returns

Promise<T | undefined>