First commit
This commit is contained in:
16
src/routes/+page.ts
Normal file
16
src/routes/+page.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { PageLoad } from "./$types"
|
||||
|
||||
// `PageServerData` will contain everything from the layouts and also the
|
||||
// `data` from the `+page.server.ts` file.
|
||||
type OutputProps = {}
|
||||
|
||||
// We have imported the `PageLoad` type from the relative `./$types` folder that
|
||||
// is hidden in the generated `.svelte-kit` folder. Those generated types
|
||||
// contain a `PageLoad` type with a `params` and `data` object that matches our route.
|
||||
// You need to run the dev server or `svelte-kit sync` to generate them.
|
||||
export const load: PageLoad<OutputProps> = async ({
|
||||
params,
|
||||
data,
|
||||
}) => {
|
||||
return {}
|
||||
}
|
||||
Reference in New Issue
Block a user