Optional Dependencies
You can declare an optional dependency using the standard TypeScript syntax:
ApiService.ts
And inject it using the optional
token field:
ApiService.ts
When using optional
tokens, the Brani container will not throw an error
if the dependency is not bound in the container, but will return undefined.