Skip to content

Commit

Permalink
Fix method return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Sep 25, 2023
1 parent 9d24824 commit f193582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion framerail/src/lib/server/page/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function pageDelete(
pageId: Optional<number>,
slug: string,
revisionComments: Optional<string>
): object {
): Promise<object> {
const response = await wellfetch("/page", {
method: "DELETE",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion framerail/src/lib/server/page/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function pageEdit(
title: string,
altTitle: string,
tags: string[]
): object {
): Promise<object> {
let endpoint = "/page"
if (!pageId) {
// Assume page creation
Expand Down
5 changes: 2 additions & 3 deletions framerail/src/lib/server/page/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ export async function pageMove(
slug: string,
newSlug: string,
revisionComments: Optional<string>
): object {
let endpoint = "/page/move"
const response = await wellfetch(endpoint, {
): Promise<object> {
const response = await wellfetch("/page/move", {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down

0 comments on commit f193582

Please sign in to comment.