🔨 fix typing, add default interop

This commit is contained in:
platane
2020-10-24 00:06:21 +02:00
parent 00e0c54b80
commit 43aa3022af
4 changed files with 33 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
import * as fs from "fs";
import * as path from "path";
import fs from "fs";
import path from "path";
import { createCanvas } from "canvas";
import { Grid, copyGrid, Color } from "@snk/types/grid";
import { Snake } from "@snk/types/snake";
@@ -9,8 +9,8 @@ import {
getCanvasWorldSize,
} from "@snk/draw/drawWorld";
import { step } from "@snk/compute/step";
import * as tmp from "tmp";
import * as execa from "execa";
import tmp from "tmp";
import execa from "execa";
const withTmpDir = async <T>(
handler: (dir: string) => Promise<T>