I've used typescript for 30 minutes and I already love it
This commit is contained in:
11
src/lib/stores.ts
Normal file
11
src/lib/stores.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { writable } from 'svelte/store'
|
||||
import type { Writable } from 'svelte/store'
|
||||
|
||||
export const pageWidth: Writable<number> = writable(0)
|
||||
|
||||
export const newestAlert: Writable<[AlertType, string] | null> = writable(null)
|
||||
|
||||
export const currentlyPlaying = writable(null)
|
||||
|
||||
const youtubeMusicBackground: string = 'https://www.gstatic.com/youtube/media/ytm/images/sbg/wsbg@4000x2250.png' // Default Youtube music background
|
||||
export const backgroundImage: Writable<string> = writable(youtubeMusicBackground)
|
||||
Reference in New Issue
Block a user