Sveltekit boilerplate
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

78 lines
1.3 KiB

/// <reference types="@sveltejs/kit" />
/// <reference types="svelte" />
/// <reference types="vite/client" />
// Modules
/**
* With these declarations images can be imported in the components.
*
* @example
* ```svelte
* <script lang=ts>
* import logo from 'static/images/logo.svg';
* </script>
*
* <img src="{logo}" />
* ```
*/
declare module '*.gif' {
const value: string;
export = value;
}
declare module '*.jpg' {
const value: string;
export = value;
}
declare module '*.jpeg' {
const value: string;
export = value;
}
declare module '*.png' {
const value: string;
export = value;
}
declare module '*.JPG' {
const value: string;
export = value;
}
declare module '*.JPEG' {
const value: string;
export = value;
}
declare module '*.PNG' {
const value: string;
export = value;
}
declare module '*.svg' {
const value: string;
export = value;
}
declare module '*.wbep' {
const value: string;
export = value;
}
// Start: Interfaces
interface Locals {
userid: string;
}
interface ImportMetaEnv {
SVELTEKIT_STARTER_BASE_URL: string;
SVELTEKIT_STARTER_CHUCK_NORRIS_API_URL: string;
SVELTEKIT_STARTER_CHUCK_NORRIS_API_LANG: string;
SVELTEKIT_STARTER_TWITTER_API_KEY: string;
SVELTEKIT_STARTER_TWITTER_TWEETS_ENDPOINT: string;
SVELTEKIT_STARTER_TWITTER_SEARCH_URL: string;
SVELTEKIT_STARTER_GITHUB_API_URL: string;
}