Comments (6)
@DrSammyD Would you be able to help us resolve this?
from dependency-injection.
I'll take a look tonight.
from dependency-injection.
Probably this line
dependency-injection/src/resolvers.ts
Line 79 in 98c0044
For now, I think we should change it to something like this:
export interface StrategyState<
TBase,
TImpl extends Impl<TBase> = Impl<TBase>,
TArgs extends Args<TBase> = Args<TBase>
> {
/**
* For typings purposes, this is done as { get: StrategyFunctor } | TImpl
* But it should be understood, and used as [{ get: StrategyFunctor }, ...TImp[]]
*/
[Strategy.array]: ({
get: (
container: Container,
key: PrimitiveOrDependencyCtor<TBase, TImpl, TArgs>
) => TImpl
} | TImpl)[];
[Strategy.alias]: any;
}
from dependency-injection.
Did typescript break this? How was it ever building?
from dependency-injection.
@DrSammyD hmm, i'm not sure. Maybe it nevered actually built with tsc
?
from dependency-injection.
@bigopon I mean, it must have or the this wouldn't have passed PR checks and this...
dependency-injection/dist/aurelia-dependency-injection.d.ts
Lines 65 to 68 in 98c0044
... wouldn't have ever been generated when compiling with typescript and running the tests.
dependency-injection/package.json
Line 35 in 98c0044
dependency-injection/package.json
Line 103 in 98c0044
So the issue only shows up when old typings conflict with the new ones? Should the other projects update to the new typings?
Would this fix actually be generically fix or are we going to have to continually change these typings to match what other projects are expecting?
from dependency-injection.
Related Issues (20)
- @lazy not working with @autoinject HOT 7
- get rid of aurelia-pal dependency HOT 2
- Optional resolver doesn't work as expected HOT 2
- Proposal for easier way to inject via DI into a view-model HOT 10
- di, nodejs HOT 4
- Missing property in d.ts? HOT 5
- Arrays and the DI Container HOT 26
- Version 1.4.0 does not contain the dist directory HOT 6
- 1.4.0 release and typings. HOT 3
- Unable to jspm bundle aurelia-dependency-injection 1.4 HOT 4
- Injecting a string resolves an empty string instead of undefined HOT 3
- Bug: Cannot use spread with the injector (Injection With Inheritance in Aurelia) HOT 19
- No access to global Container when used in node npm module HOT 5
- 1.4.2 release typings HOT 25
- error TS1005: ';' expected in TS typings HOT 1
- dependency-injection 1.5.0 incompatible to aurelia-validation 1.4.0 HOT 9
- Building project in babel-loader fails on const enum because of --isolatedModules flag HOT 1
- Bug: @newInstance() becomes container default instance if it's the first instance
- Backport `resolve` from Aurelia 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-injection.