From 115366de0cebafce8f75c388caa79ac11da78d21 Mon Sep 17 00:00:00 2001 From: Mats Larsen Date: Thu, 28 Oct 2021 20:54:56 +0200 Subject: [PATCH] Move app theme into its own type --- static/colour.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/colour.ts b/static/colour.ts index d613f2aa4..b387c7949 100644 --- a/static/colour.ts +++ b/static/colour.ts @@ -24,11 +24,13 @@ import * as monaco from 'monaco-editor'; +type AppTheme = 'default' | 'dark' | 'all'; + interface ColourScheme { name: string; desc: string; count: number; - themes: ('default' | 'dark' | 'all')[]; + themes: AppTheme[]; } // If you want to use a scheme in every theme, set `theme: ['all']`