mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-19 21:36:40 +00:00
23 lines
569 B
TypeScript
23 lines
569 B
TypeScript
// See https://kit.svelte.dev/docs/types#app
|
|
// for information about these interfaces
|
|
// and what to do when importing types
|
|
declare namespace App {
|
|
// interface Locals {}
|
|
// interface PageData {}
|
|
// interface Error {}
|
|
// interface Platform {}
|
|
}
|
|
|
|
/**
|
|
* Taken from markdown plugin. For some reason importing here causes ts errors
|
|
*/
|
|
interface Metadata<TAttributes extends {} = {}> {
|
|
attributes: TAttributes
|
|
body: string
|
|
}
|
|
type DocPage = Metadata<{ title: string; published: boolean }>
|
|
declare module '*.md' {
|
|
const content: DocPage
|
|
export = content
|
|
}
|