-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create pageController #25
base: master
Are you sure you want to change the base?
Conversation
src/controllers/pageController.ts
Outdated
/** | ||
* Creates a page with the given attribues | ||
* | ||
* @param attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add types to your JSDoc comments!
Looks good once you add some tests, too @anmol678! See @tanzeelak's PR (#27) for reference. |
src/controllers/pageController.ts
Outdated
@@ -62,7 +67,7 @@ export function updatePage(id: number, attributes: PageLinkAttributes): Promise< | |||
/** | |||
* Deletes a page. Returns true if the page was successfully deleted, false otherwise. | |||
* | |||
* @param id | |||
* @param {numebr} id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
number
/** | ||
* Creates a page with the given attribues | ||
* | ||
* @param {PageLinkAttributes} attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it looks like some of your tests are failing! Could you see what's happening there @anmol678? |
Created Page controller based on showController.ts
#22