mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Explicitely define server load and action types
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export const load = async ({ fetch, cookies, url }) => {
|
||||
import type { Actions, PageServerLoad } from "./$types";
|
||||
|
||||
export const load: PageServerLoad = async ({ fetch, cookies, url }) => {
|
||||
const searchQuery = url.searchParams.get("website_search_query");
|
||||
const sortBy = url.searchParams.get("website_sort");
|
||||
|
||||
@@ -57,7 +59,7 @@ export const load = async ({ fetch, cookies, url }) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const actions = {
|
||||
export const actions: Actions = {
|
||||
createWebsite: async ({ request, fetch, cookies }) => {
|
||||
const data = await request.formData();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user