-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
AuthorizeStep shows TSC errors like Property 'auth' does not exist on type 'RouteConfig'. #265
Comments
Looks like we need to adjust the type annotations on the next parameter. It's a function with a |
I see. |
@cmichaelgraham I believe that this line needs to use a type annotation like run(instruction: NavigationInstruction, next: { (): Promise, cancel: (result: any) => Promise, reject: (result: any) => Promise, complete: (result: any) => Promise }): void; but the dts generator doesn't appear to support it. Is this something we can add easily, or is there alternative syntax that might work? |
Thanks, @cmichaelgraham. Looks like your change worked great. |
Thank you very much! |
There is the following code in the cheat sheet (typescript). I have similar code borrowed from the cheat sheet.
http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.0.6/doc/article/cheat-sheet
tsc shows the following errors.
How do I fix?
The text was updated successfully, but these errors were encountered: