Navigation Menu

Skip to content

Commit

Permalink
Updated the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Aug 24, 2019
1 parent 25132ce commit 4b2ea46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/author.ts
Expand Up @@ -59,7 +59,7 @@ export class Author {
/**
* Creates a new author from the specified JSON object.
* @param {Object<string, *>} map A JSON object representing an author.
* @return {Author} The instance corresponding to the specified JSON map.
* @return {Author} The instance corresponding to the specified JSON object.
*/
static fromJson(map) {
return new Author(typeof map.user_ip == 'string' ? map.user_ip : '', typeof map.user_agent == 'string' ? map.user_agent : '', {
Expand Down
2 changes: 1 addition & 1 deletion src/core/blog.ts
Expand Up @@ -38,7 +38,7 @@ export class Blog {
/**
* Creates a new blog from the specified JSON object.
* @param {Object<string, *>} map A JSON object representing a blog.
* @return {Blog} The instance corresponding to the specified JSON map.
* @return {Blog} The instance corresponding to the specified JSON object.
*/
static fromJson(map) {
return new Blog(typeof map.blog == 'string' ? new URL(map.blog) : null, {
Expand Down
2 changes: 1 addition & 1 deletion src/core/comment.ts
Expand Up @@ -68,7 +68,7 @@ export class Comment {
/**
* Creates a new comment from the specified JSON object.
* @param {Object<string, *>} map A JSON object representing a comment.
* @return {Comment} The instance corresponding to the specified JSON map.
* @return {Comment} The instance corresponding to the specified JSON object.
*/
static fromJson(map) {
const hasAuthor = Object.keys(map)
Expand Down

0 comments on commit 4b2ea46

Please sign in to comment.