Editor · glasshouse.ts
01type Scene = {02 name: string; background: string;03 accent: string; startHour: number;04};05 06// Light the glasshouse after the last ferry.07const scene: Scene = {08 name: 'tide',09 background: '#101416',10 accent: '#00ACCE', startHour: 20,11};12 13export function lightWindows(hour: number) {14 const place = hour >= scene.startHour15 ? "glasshouse" : "north quay";16 return `${place} / ${scene.name}`;17}18 19export const destination = lightWindows▏
lightWindows(hour: number)sceneSceneScenetype
(20);20const spare = 4;21lightWindows("after sunset");! Line 20 · ‘spare’ is declared but never read.
× Line 21 · Expected a number, received a string.