Skip to content

Commit

Permalink
Merge branch 'feature/#32'
Browse files Browse the repository at this point in the history
  • Loading branch information
thejsw committed Sep 6, 2022
2 parents 79b1012 + 2f624ae commit 521b2a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions front/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es6",
"moduleResolution": "node",
"jsx": "react-jsx"
"jsx": "react-jsx",
"moduleResolution": "node"
}
}
32 changes: 15 additions & 17 deletions front/src/remotes/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check

import axios from 'axios';

const conduitAxios = axios.create({
Expand Down Expand Up @@ -124,22 +123,21 @@ const deleteArticle = (slug) => conduitAxios.delete(`/articles/${slug}`);
// comments
/**
* @param {string} slug
* @returns {Promise<{ comments: [
* {
* id: number;
* createdAt: string;
* updatedAt: string;
* body: string;
* author: {
* username: string;
* bio: string;
* image: string;
* following: boolean
* }
* }
* ]
*
*
* @returns {Promise<{
* comments: [
* {
* id: number;
* createdAt: string;
* updatedAt: string;
* body: string;
* author: {
* username: string;
* bio: string;
* image: string;
* following: boolean
* }
* }
* ]
* }>}
*/
const getComments = (slug) => conduitAxios.get(`/articles/${slug}/comments`);
Expand Down

0 comments on commit 521b2a4

Please sign in to comment.