-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
undefined interface in typescript definition #15
Comments
Also, there's two typos namely |
would be happy to do a PR for fixing this, but of course the .d.ts file seems to be generated. The full file should be: declare module 'aurelia-loader-default' {
import { Origin } from 'aurelia-metadata';
import { Loader, TemplateRegistryEntry } from 'aurelia-loader';
export class DefaultLoader extends Loader {
constructor();
loadModule(id: string): Promise<any>;
loadAllModules(ids: string[]): Promise<any[]>;
loadTemplate(url: string): Promise<TemplateRegistryEntry>;
loadText(url: string): Promise<string>;
}
} |
There already are PR's for the promise typo's : #14, #19, #18. I think that the wait is for a release of the babel-dts-generator which fixes the return type issue (YoloDev/babel-dts-generator#26) |
The PRs will be processed today and we'll get a release out asap. Apologies for the delay in this. Hang tight and there will likely be a new release tonight or tomorrow morning. |
Fixed in a previous release. |
Aurelia-loader-default.d.ts has DefaultLoader class.loadTemplate function return a Promise.
TemplateRegistryEntry is showing up as undefined. Don't know where this is defined.
The text was updated successfully, but these errors were encountered: