Skip to content

Commit 658d570

Browse files
committed
chore: isCreated, isOk params to documentation
1 parent 59fe538 commit 658d570

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/is-created.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import validateHttpStatus from './utils/validate-http-status';
22

33
/**
4+
* @module isCreated
5+
* @description
46
* Validate HTTP Status code 201 type SUCCESS
57
*
6-
* @param {integer} statusCode - The HTTP Status code
7-
* @throws {HTTPStatusError} Will throw an error if the @param {statusCode} is different then 201
8-
* @return {boolean}
8+
* @param {Integer} statusCode - The HTTP Status code
9+
* @return {Boolean}
10+
* @throws {HTTPStatusError} When the statusCode is different then 201
911
*/
1012
function isCreated(statusCode) {
1113
return validateHttpStatus(statusCode, 201);

src/is-ok.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import validateHttpStatus from './utils/validate-http-status';
22

33
/**
4+
* @module isOk
5+
* @description
46
* Validate HTTP Status code 200 type SUCCESS
57
*
6-
* @param {integer} statusCode - The HTTP Status code
7-
* @throws {HTTPStatusError} Will throw an error if the @param {statusCode} is different then 200
8-
* @return {boolean}
8+
* @param {Integer} statusCode - The HTTP Status code
9+
* @return {Boolean}
10+
* @throws {HTTPStatusError} When the statusCode is different then 200
911
*/
1012
function isOk(statusCode) {
1113
return validateHttpStatus(statusCode, 200);

0 commit comments

Comments
 (0)