Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Support constructor parameter injections #275

Open
auguwu opened this issue Jan 19, 2023 · 0 comments
Open

Support constructor parameter injections #275

auguwu opened this issue Jan 19, 2023 · 0 comments

Comments

@auguwu
Copy link
Collaborator

auguwu commented Jan 19, 2023

blueprint:

interface Inject {
    (target: Object, property: string | symbol): void;
    (target: Object, property: string | symbol, parameterIndex: number): void;
}

declare const Inject: Inject;

class Owo {
    @Inject
    readonly a!: number;

    constructor(@Inject a: string){}
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant