Skip to content

Commit 952e1bd

Browse files
authored
fix(extensions): typing issue string instead of an union type (#747)
1 parent cc35e8b commit 952e1bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/langs/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import { nix } from '@replit/codemirror-lang-nix';
107107
import { svelte } from '@replit/codemirror-lang-svelte';
108108
import { solidity } from '@replit/codemirror-lang-solidity';
109109

110-
export const langs: Record<string, () => LanguageSupport | StreamLanguage<unknown>> = {
110+
export const langs = {
111111
'1': () => StreamLanguage.define(troff),
112112
'2': () => StreamLanguage.define(troff),
113113
'3': () => StreamLanguage.define(troff),
@@ -332,7 +332,7 @@ export const langs: Record<string, () => LanguageSupport | StreamLanguage<unknow
332332
yml: () => yaml(),
333333
ys: () => StreamLanguage.define(yacas),
334334
z80: () => StreamLanguage.define(z80),
335-
};
335+
} satisfies Record<string, () => LanguageSupport | StreamLanguage<unknown>>;
336336

337337
export const langNames = Object.keys(langs) as LanguageName[];
338338

0 commit comments

Comments
 (0)