Home > typeioc > IContainer > tryResolve
Attempts to resolve a service with optional parameters.
Signature:
tryResolve<R>(service: {}, ...args: {}[]): R | undefined;
| Parameter | Type | Description | 
|---|---|---|
| service | {} | 
      service value registered prior resolution. If service is null or undefined ArgumentError is thrown | 
    
| args | {}[] | 
      optional arguments for the service instantiation | 
Returns:
R | undefined