@tempots/dom

Provide() function

Higher-order function that composes multiple provider functions into a single provider function.

Signature:

Provide: extends Provider[]>(...providerFns: T) => Provider

Parameters

Parameter

Type

Description

providerFns

T

The provider functions to be composed.

Returns: Provider

A new provider function that applies the composed providers in reverse order.