Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

named and tagged key support number and symbol type #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function makePropertyInjectDecorator(container: interfaces.Container, doCache: b
}

function makePropertyInjectNamedDecorator(container: interfaces.Container, doCache: boolean) {
return function(serviceIdentifier: interfaces.ServiceIdentifier<any>, named: string) {
return function(serviceIdentifier: interfaces.ServiceIdentifier<any>, named: string | number | symbol) {
return function(proto: any, key: string): void {

let resolve = () => {
Expand All @@ -60,7 +60,7 @@ function makePropertyInjectNamedDecorator(container: interfaces.Container, doCac
}

function makePropertyInjectTaggedDecorator(container: interfaces.Container, doCache: boolean) {
return function(serviceIdentifier: interfaces.ServiceIdentifier<any>, key: string, value: any) {
return function(serviceIdentifier: interfaces.ServiceIdentifier<any>, key: string | number | symbol, value: any) {
return function(proto: any, propertyName: string): void {

let resolve = () => {
Expand Down