-
Notifications
You must be signed in to change notification settings - Fork 105
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
docs: improve types #288
docs: improve types #288
Conversation
*/ | ||
export async function downloadArtifact( | ||
_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults, | ||
artifactDetails: ElectronPlatformArtifactDetailsWithDefaults | ElectronGenericArtifactDetails, |
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.
Doesn't make sense to have the function parameter start with _
so I changed the variable naming around.
|
||
return await cache.putFileInCache(url, tempDownloadPath, fileName); | ||
}); | ||
} | ||
|
||
/** | ||
* Downloads a specific version of Electron and returns an absolute path to a | ||
* Downloads the Electron binary for a specific version and returns an absolute path to a | ||
* ZIP file. |
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.
Technically, we have some non-ZIP artifacts too as well? such as SHASUM256.txt
66af0cc
to
8e3a343
Compare
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.
looks good, I'm excited to see more types in our docs :D
🎉 This PR is included in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Cleanup of our API documentation for
@electron/get
.Notable changes:
ElectronGenericArtifactDetails
out ofElectronPlatformArtifactDetailsWithDefaults
.Other work is mostly categorizing, expanding on existing comments, and hiding internal types.