personal-website/src/app.d.ts

53 lines
795 B
TypeScript
Raw Normal View History

2024-04-11 11:53:39 +00:00
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
2024-04-12 18:27:54 +00:00
interface PostsObject {
id: number;
title: string;
author: string;
image: string;
}
2024-04-18 12:38:30 +00:00
interface Discord {
id: number;
username: string;
global_name: string;
avatar: string;
clan: unknown;
}
interface LastFMImage {
size: string;
'#text': string;
}
interface LastFMTrack {
image: Array<LastFMImage>;
name: string;
artist: {
'#text': string;
};
}
interface LastFM {
recenttracks: {
track: Array<LastFMTrack>;
};
}
2024-04-11 11:53:39 +00:00
declare global {
namespace App {
// interface Error {}
// interface Locals {}
2024-04-12 18:27:54 +00:00
interface PageData {
posts?: Array<PostsObject>;
2024-04-18 12:38:30 +00:00
discord: Discord;
lastfm: LastFM;
2024-04-21 02:52:52 +00:00
counter: number;
2024-04-12 18:27:54 +00:00
}
2024-04-11 11:53:39 +00:00
// interface PageState {}
// interface Platform {}
}
}
export {};