You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where Foo can be substituted for Bah during resolution
Shape inference
Rather than named types it'd be great if you could just provide a shape and we can check the shape of our deps
interfaceFoo{color: string}jpex.constant<Foo>({color: 'blue'});// somehow we can work out that this shape matches Fooconstfoo=jpex.resolve<{color: string}>();
The crux of all this is that babel does isolated modules so all you have to go on is the imported type name.
Variable names
Ability to check if the dependency name is a variable. Right now we only check if the first parameter is a string literal.
// worksjpex.factory('foo',foo);// does not workconstname='foo';jpex.factory(name,foo);
The text was updated successfully, but these errors were encountered:
More Inferrence
Some advanced things I'd like to be able to handle in the future:
Interface inheritance
where
Foo
can be substituted forBah
during resolutionShape inference
Rather than named types it'd be great if you could just provide a shape and we can check the shape of our deps
The crux of all this is that babel does isolated modules so all you have to go on is the imported type name.
Variable names
Ability to check if the dependency name is a variable. Right now we only check if the first parameter is a string literal.
The text was updated successfully, but these errors were encountered: