Function providers

Creates a collection of providers that can be registered one by one, or all at once.

  const collection = providers({
apiClient: apiClientProvider,
http: httpProvider,
});

container.register(collection);
  container.register(collection.http);
  • Type Parameters

    • ItemsParam

    Parameters

    • items: ItemsParam & Record<string, Resource<"provider", "register", ProviderRegisterFn<Jimpex>>>

    Returns ItemsParam & Record<string, Resource<"provider", "register", ProviderRegisterFn<Jimpex>>> & {} & {} & Record<string, unknown>