Function Resolved

  • Apply to the property that need the dependency

    Parameters

    • injectKey: string | symbol | Typed

      The index of the dependency

    Returns PropertyDecorator

    Cached

    @Resolved("username")
    username!: string;

    @Resolved("register")
    register!: (name: string, password: string) => void;