This adds a generic type check to the Container.get function so that the return type is equal to the source parameter type. This way it will not return 'any'.
There may be breaking changes for code relying on this function. But probably the previous version relied on 'any', thus not working at runtime anyway.
This adds a generic type check to the Container.get function so that the return type is equal to the source parameter type. This way it will not return 'any'.
There may be breaking changes for code relying on this function. But probably the previous version relied on 'any', thus not working at runtime anyway.