Skip to content
function since v0.1

onProviderConstructed

Called just before Oh My Prvd returns a newly constructed provider. Handlers are expected to be infallible and non-yielding. The handler receives the constructed provider.

function prvd.onProviderConstructed(
  handler: (Provider<unknown>) -> ()
) -> (),
export const onProviderConstructed: (
  handler: (provider: Provider<object>) => void,
) => void

Parameters

handler : (Provider<unknown>) -> void

A handler that is called just before a newly constructed provider is returned. It receives the provider.