Skip to content

Commit

Permalink
Updated the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jun 1, 2019
1 parent 7323607 commit c93de0f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/features/comment_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The exception `message` usually includes some debug information, provided by the
```js
import {Author, Blog, Client, Comment} from '@cedx/akismet';

async function main(): Promise<void> {
async function main(): Promise {
try {
const comment = new Comment(
new Author('127.0.0.1', 'Mozilla/5.0'),
Expand Down
2 changes: 1 addition & 1 deletion doc/features/key_verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The exception `message` usually includes some debug information, provided by the
```js
import {Blog, Client} from '@cedx/akismet';

async function main(): Promise<void> {
async function main(): Promise {
try {
const client = new Client('123YourAPIKey', new Blog(new URL('https://www.yourblog.com')));
const isValid = await client.verifyKey();
Expand Down
4 changes: 2 additions & 2 deletions doc/features/submit_ham.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Remember that, as explained in the [submit spam](submit_spam.md) documentation,
that any values you're passing here match up with the original and corresponding [comment check](comment_check.md) call.

```
Client#submitHam(comment: Comment): Promise<void>
Client#submitHam(comment: Comment): Promise
```

## Parameters
Expand All @@ -28,7 +28,7 @@ The exception `message` usually includes some debug information, provided by the
```js
import {Author, Blog, Client, Comment} from '@cedx/akismet';

async function main(): Promise<void> {
async function main(): Promise {
try {
const comment = new Comment(
new Author('127.0.0.1', 'Mozilla/5.0'),
Expand Down
4 changes: 2 additions & 2 deletions doc/features/submit_spam.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ to be available for [submit spam](submit_spam.md) and [submit ham](submit_ham.md
you should ensure that the values that you do send match those of the original content.

```
Client#submitSpam(comment: Comment): Promise<void>
Client#submitSpam(comment: Comment): Promise
```

## Parameters
Expand All @@ -30,7 +30,7 @@ The exception `message` usually includes some debug information, provided by the
```js
import {Author, Blog, Client, Comment} from '@cedx/akismet';

async function main(): Promise<void> {
async function main(): Promise {
try {
const comment = new Comment(
new Author('127.0.0.1', 'Mozilla/5.0'),
Expand Down
2 changes: 1 addition & 1 deletion example/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Author, Blog, Client, ClientError, Comment, CommentType} from '@cedx/aki

/**
* Queries the Akismet service.
* @return {Promise<void>} Completes when the program is terminated.
* @return {Promise} Completes when the program is terminated.
*/
async function main() { // eslint-disable-line no-unused-vars
try {
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ task('default', series('version', 'build'));
* @param {string} command The command to run.
* @param {string[]} [args] The command arguments.
* @param {SpawnOptions} [options] The settings to customize how the process is spawned.
* @return {Promise<void>} Completes when the command is finally terminated.
* @return {Promise} Completes when the command is finally terminated.
*/
function _exec(command, args = [], options = {}) {
return new Promise((fulfill, reject) => spawn(normalize(command), args, {shell: true, stdio: 'inherit', ...options})
Expand Down

0 comments on commit c93de0f

Please sign in to comment.