Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Create pageController #25

wants to merge 3 commits into from

Conversation

anmol678
Copy link
Member

Created Page controller based on showController.ts
#22

/**
* Creates a page with the given attribues
*
* @param attributes
Copy link
Member

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!

@nathanmsmith
Copy link
Member

Looks good once you add some tests, too @anmol678! See @tanzeelak's PR (#27) for reference.

@@ -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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can each JSDoc comment have the following properties:

@tanzeelak is also working on this for her PR (#27)!

@nathanmsmith
Copy link
Member

Also it looks like some of your tests are failing! Could you see what's happening there @anmol678?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants