Add type annotations (#562)

This commit is contained in:
woxtu
2022-06-29 04:17:23 +09:00
committed by GitHub
parent dc84d7c1b5
commit 506ac2574f
5 changed files with 19 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import {
loadedEnvironments,
mode,
pyodideLoaded,
type Environment,
} from '../stores';
import { addClasses, htmlDecode } from '../utils';
import { BaseEvalElement } from './base';
@@ -12,7 +13,7 @@ import type { PyodideInterface } from '../pyodide';
// Premise used to connect to the first available pyodide interpreter
let pyodideReadyPromise;
let environments;
let environments: Record<Environment['id'], Environment> = {};
let currentMode;
pyodideLoaded.subscribe(value => {