···11+import {shim} from './emul';
22+33+// Shim was dumping stuff globally and we've shifted to imports, so I'm adapting it here for now.
44+55+export const {readFileSync, writeFileSync, writeFile, writeSync, readSync } = shim.fs;
66+export default {readFileSync, writeFileSync, writeFile, writeSync, readSync };
+7
playground/src/newt.d.ts
···11+import { Diagnostic, HoverResult, CodeAction } from './ipc'
22+33+export function LSP_updateFile(name: string, content: string): any;
44+export function LSP_checkFile(name: string): Diagnostic[];
55+export function LSP_hoverInfo(name: string, row: number, col: number): HoverResult | boolean | null;
66+export function LSP_codeActionInfo(name: string, row: number, col: number): CodeAction[] | null;
77+export function LSP_compileJS(name: string): string;