Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Confused about the way injected values are resolved when they share common type #79

Description

@g00fy-
class Database{
}

class MySql extends Database {}
class PostgreSql extends Database {}

@Inject(Database,Database)
class DatabaseSyncService {
    constructor(sourceDatabase: Database, destinationDatabase: Database){}
}

function main(){
    var injector = new Injector([PostgreSql,MySql]);
    var syncService = injector.get(DatabaseSyncService);
}

What will be provided to the syncService instance?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions