forked from rollup/rollup-docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSDoc types to internal scripts (#5305)
* Add type check for script files * Use script types * Add missing inquirer types
- Loading branch information
1 parent
d56ac63
commit 4c6635b
Showing
15 changed files
with
319 additions
and
50 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
declare module 'github-api' { | ||
export interface Repo { | ||
listPullRequests({ state: string }): Promise<{ | ||
data: { number: number; title: string; head: { sha: string } }[]; | ||
}>; | ||
|
||
getPullRequest(pr: number): Promise<{ data: { body: string; user: { login: string } } }>; | ||
|
||
createRelease(release: { body: string; name: string; tag_name: string }): Promise<void>; | ||
} | ||
|
||
export interface Issues { | ||
createIssueComment(issueNumber: number, text: string): Promise<void>; | ||
} | ||
|
||
export default class GitHub { | ||
constructor({ token: string }); | ||
|
||
getRepo(organization: string, repository: string): Repo; | ||
|
||
getIssues(organization: string, repository: string): Issues; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.