Skip to content

Commit 8440b44

Browse files
committed
Fix theme type
1 parent b87ec5d commit 8440b44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/components/SyntaxHighlighter/coderTheme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { Theme, useTheme } from "@material-ui/core/styles"
22
import { useMonaco } from "@monaco-editor/react"
33
import { useEffect, useState } from "react"
44
import { hslToHex } from "util/colors"
5+
import { editor } from "monaco-editor"
56

67
// Theme based on https://github.com/brijeshb42/monaco-themes/blob/master/themes/Dracula.json
78
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- The theme is not typed
8-
export const coderTheme = (theme: Theme): Record<string, any> => ({
9+
export const coderTheme = (theme: Theme): editor.IStandaloneThemeData => ({
910
base: "vs-dark",
1011
inherit: true,
1112
rules: [

0 commit comments

Comments
 (0)