Function provider

Creates an object that can configure/extend the container by registering services and resources.

class APIClient {}
const apiClientProvider = provider((app) => {
app.set('apiClient', () => new APIClient());
});
  • Parameters

    • register: ProviderRegisterFn<Jimpex>

    Returns Resource<"provider", "register", ProviderRegisterFn<Jimpex>>