Remove reference to $types

pull/8797/head
Puru Vijay 3 years ago
parent 31f8456480
commit 1078ad22da

@ -1,6 +1,5 @@
import * as gist from '$lib/db/gist';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, parent }) {
let gists = [];
let next = null;

@ -4,7 +4,6 @@
import { ago } from '$lib/time';
import { goto, invalidateAll } from '$app/navigation';
/** @type {import('./$types').PageData} */
export let data;
const { login, logout } = getContext('app');

@ -94,7 +94,6 @@ export async function GET({ params }) {
});
}
/** @type {import('./$types.js').EntryGenerator} */
export async function entries() {
return get_examples_list(examples_data)
.map(({ examples }) => examples)

@ -3,7 +3,6 @@ import { json } from '@sveltejs/kit';
export const prerender = true;
/** @type {import('./$types').RequestHandler} */
export function GET() {
return json({
blocks: content()

@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';
export const prerender = true;
/** @type {import('./$types').PageLoad} */
export function load() {
throw redirect(301, 'examples/hello-world');
}

@ -1,6 +1,5 @@
import { init, inited, search } from '@sveltejs/site-kit/search';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, fetch }) {
if (!inited) {
const res = await fetch('/content.json');

@ -1,7 +1,6 @@
<script>
import { SearchResults } from '@sveltejs/site-kit/search';
/** @type {import('./$types').PageData} */
export let data;
</script>

Loading…
Cancel
Save