Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the *.d.ts files? #11

Open
deap82 opened this issue Feb 2, 2017 · 1 comment
Open

How to use the *.d.ts files? #11

deap82 opened this issue Feb 2, 2017 · 1 comment

Comments

@deap82
Copy link

deap82 commented Feb 2, 2017

When using this plugin from typescript in VS, how should I enable this import:
import { autoinject } from 'aurelia-property-injection';

The official aurelia modules has a typings.json and *.d.ts files that declares the module.

Right now I've added this to my own *.d.ts file:
declare module 'aurelia-property-injection' {
export function autoinject(potentialTarget?: any, potentialKey?: any): any;
}
To make my usage compile.

@RomkeVdMeulen
Copy link

I still have "aurelia-property-injection": "github:heruan/aurelia-property-injection", in my typings.json. But if I point that to devaur/aurelia-property-injection it doesn't work. Not sure how I should be importing typings. The only thing I've found that works is github:devaur/aurelia-property-injection/dist/main/index.d.ts but that's not exactly ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants