-
Notifications
You must be signed in to change notification settings - Fork 927
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
feat: typescript typings and example #486
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #486 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 2 2
=========================================
Hits 2 2 Continue to review full report at Codecov.
|
Followup - Remove package from DefinitelyTyped - https://github.com/DefinitelyTyped/DefinitelyTyped#removing-a-package |
reminder to look at changes to the @types package #40778 linked above and DefinitelyTyped/DefinitelyTyped#40840 before merging |
Why are you waiting to merge this PR ? 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for PR
Thanks for the review @kevinmarrec and @pi0 I'll look at these today, rebase and resubmit. |
As part of the conversion to use async as requested. I removed the comments suggesting async
|
So much for "today"... All of these should be fixed finally. The examples should be working correctly too. Let me know if you see anything else! |
Any updates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR ❤️ I put some comments.
@pi0 @kevinmarrec Could you guys take another look? somehow I merged two branches and added a bunch of incorrect changes in the middle of this PR. (probably cuz I'm on a dev branch and not a feature branch....) Should be good to go. Should also make changes like this: DefinitelyTyped/DefinitelyTyped#43380 easier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Nice work! 😃 I left some comments related to latest changes on dev branch.
Alright I think I've made those updates besides RefreshController and RequestHandler. Side note: am I supposed to mark the comments as resolved? or leave that for reviewers to resolve? Also, I'm really tempted to just rename everything to .ts and add a build step. It would make these types way more complete and way less maintenance, not to mention make the library more approachable for newcomers, since typescript is easier to see mistakes. |
As a user, looking forward to seeing this merged! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Nice work! Almost done! 😄 I think there is only one last thing to fix.
@@ -0,0 +1,8 @@ | |||
export default class RequestHandler { | |||
constructor(auth: any); | |||
$auth: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$auth
shouldn't be the Auth class?
Also, import @nuxt/auth relatively in the typescript example's package.json
closing in favor of #622 |
Hi @NickBolles Nice work. I may bring some parts from your works but it will only cover internal TS rewrite and auto-generated types. Are you interested in helping with a new typescript section in docs and creating a repository for with-typescript example? We can then link it from docs :) |
Sure! Where/when is the typescript re-writes happening? I was tempted to just rename everything to .ts and add a compile step instead of adding the types. I'd be interested in helping out or reviewing the typescript migration. |
@NickBolles Hi! Check #621 |
Perfect. Thanks! |
No description provided.