-
Notifications
You must be signed in to change notification settings - Fork 41
chore: auto generate apiClient #64
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
Conversation
src/common/atlas/apiClientError.ts
Outdated
static async fromResponse(response: Response, message?: string): Promise<ApiClientError> { | ||
message ||= `error calling Atlas API`; |
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.
static async fromResponse(response: Response, message?: string): Promise<ApiClientError> { | |
message ||= `error calling Atlas API`; | |
static async fromResponse(response: Response, message: string = 'error calling Atlas API'): Promise<ApiClientError> { |
scripts/apply.ts
Outdated
@@ -0,0 +1,96 @@ | |||
import fs from "fs"; |
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.
import fs from "fs"; | |
import fs from "fs/promises"; |
try this to avoid promisify 🙂
src/logger.ts
Outdated
}); | ||
}); | ||
} | ||
const mkdirAsync = promisify(fs.mkdir); |
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.
same here with fs/promises
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.
Nice 🚀 A bit scary to mix auto-generated and and regular code in one place but it does give a nice DevEx so seems worth it
I started with a template, but unfortunately the devex was much worse |
No description provided.