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'; import * as gist from '$lib/db/gist';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, parent }) { export async function load({ url, parent }) {
let gists = []; let gists = [];
let next = null; let next = null;

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

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

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

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

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

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

Loading…
Cancel
Save