Skip to content

Commit

Permalink
Improves API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 14, 2018
1 parent c14e46c commit 46b0c7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion source/danger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ declare module "danger" {

/** The GitHub metadata for your PR */
interface GitHubDSL extends GitHubJSONDSL {
/** An authenticated API so you can extend danger's behavior. An instance of the "github" npm module. */
/**
* An authenticated API so you can extend danger's behavior by using the [GitHub v3 API](https://developer.github.com/v3/).
*
* A set up instance of the "github" npm module. You can get the full [API here](https://octokit.github.io/node-github/).
*/
api: GitHub
/** A scope for useful functions related to GitHub */
utils: GitHubUtilsDSL
Expand Down
6 changes: 5 additions & 1 deletion source/dsl/GitHubDSL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export interface GitHubJSONDSL {

/** The GitHub metadata for your PR */
export interface GitHubDSL extends GitHubJSONDSL {
/** An authenticated API so you can extend danger's behavior. An instance of the "github" npm module. */
/**
* An authenticated API so you can extend danger's behavior by using the [GitHub v3 API](https://developer.github.com/v3/).
*
* A set up instance of the "github" npm module. You can get the full [API here](https://octokit.github.io/node-github/).
*/
api: GitHub
/** A scope for useful functions related to GitHub */
utils: GitHubUtilsDSL
Expand Down

0 comments on commit 46b0c7f

Please sign in to comment.