question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should support type annotations on functions

See original GitHub issue
var inj = Injector.resolveAndCreate([
    bind(Car).toFactory((e) => new Car(e), [Engine]),
    bind(Engine).toFactory(() => new Engine())
]);

should be written as:

var inj = Injector.resolveAndCreate([
    bind(Car).toFactory((e: Engine) => new Car(e)),
    bind(Engine).toFactory(() => new Engine())
]);

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
KrzysztofBogdancommented, Sep 1, 2016

@mhevery @PascalPrecht Then what about this comment: http_module.ts#L48 ?

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

typing — Support for type hints — Python 3.11.1 documentation
The Python runtime does not enforce function and variable type annotations. They can be used by third party tools such as type checkers,...
Read more >
Understanding type annotation in Python - LogRocket Blog
With type hints, you can annotate variables and functions with datatypes. Tools like mypy, pyright, pytypes, or pyre perform the functions ...
Read more >
Type Annotation in Python | Towards Data Science
Type annotations — also known as type signatures — are used to indicate the datatypes of variables and input/outputs of functions and ...
Read more >
Pros and Cons of Type Hints - Real Python
Type hints work best in modern Pythons. Annotations were introduced in Python 3.0, and it's possible to use type comments in Python 2.7....
Read more >
Advantages of Type Annotations. - Python Supply - Medium
Native syntactic support for type annotations was introduced in Python 3. This article provides an overview of this feature, reviews how it can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found