Home > typeioc > IDecorator > provide
Registers a service using fluent API
Signature:
provide<R>(service: {}): IDecoratorRegistration<R>;
| Parameter | Type | Description |
|---|---|---|
| service | {} |
an instance of a service. If service is null or undefined ArgumentError is thrown |
Returns:
IDecoratorRegistration<R>