diff --git a/.circleci/install-wrk.sh b/.circleci/install-wrk.sh index 31f910edd..e78e13622 100755 --- a/.circleci/install-wrk.sh +++ b/.circleci/install-wrk.sh @@ -6,8 +6,8 @@ cd "$(dirname "$0")" cd /tmp/ sudo apt-get install build-essential libssl-dev git -y -git clone https://github.com/wg/wrk.git wrk +git clone --depth=1 https://github.com/wg/wrk.git wrk cd wrk sudo make # move the executable to somewhere in your PATH, ex: -sudo cp wrk /usr/local/bin \ No newline at end of file +sudo cp wrk /usr/local/bin diff --git a/packages/common/decorators/core/inject.decorator.ts b/packages/common/decorators/core/inject.decorator.ts index d06593dbe..c632f423f 100644 --- a/packages/common/decorators/core/inject.decorator.ts +++ b/packages/common/decorators/core/inject.decorator.ts @@ -3,6 +3,7 @@ import { PROPERTY_DEPS_METADATA, SELF_DECLARED_DEPS_METADATA, } from '../../constants'; +import { ForwardReference, InjectionToken } from '../../interfaces'; import { isUndefined } from '../../utils/shared.utils'; /** @@ -34,8 +35,8 @@ import { isUndefined } from '../../utils/shared.utils'; * * @publicApi */ -export function Inject( - token?: T, +export function Inject( + token?: InjectionToken | ForwardReference, ): PropertyDecorator & ParameterDecorator { const injectCallHasArguments = arguments.length > 0;