We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87ec5d commit 8440b44Copy full SHA for 8440b44
site/src/components/SyntaxHighlighter/coderTheme.ts
@@ -2,10 +2,11 @@ import { Theme, useTheme } from "@material-ui/core/styles"
2
import { useMonaco } from "@monaco-editor/react"
3
import { useEffect, useState } from "react"
4
import { hslToHex } from "util/colors"
5
+import { editor } from "monaco-editor"
6
7
// Theme based on https://github.com/brijeshb42/monaco-themes/blob/master/themes/Dracula.json
8
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- The theme is not typed
-export const coderTheme = (theme: Theme): Record<string, any> => ({
9
+export const coderTheme = (theme: Theme): editor.IStandaloneThemeData => ({
10
base: "vs-dark",
11
inherit: true,
12
rules: [
0 commit comments