1
0
Fork 0

Fix missing type

pull/1/head
Ambrose Chua 2021-09-30 11:36:10 +08:00
parent 0e2185addb
commit 4b14fe7d8a
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export default class PlatformDeno implements Platform {
['run', '--allow-read', '--allow-net=httpbin.org', 'index-deno.js', file],
{cwd: ctx.fixturesPath, stdio: ['pipe', 'pipe', 'inherit']},
);
const stdout = await new Promise((resolve, reject) => {
const stdout = await new Promise<string>((resolve, reject) => {
let stdout = '';
child.stdout.on('data', (data) => {
stdout += data;

View File

@ -7,6 +7,7 @@ export type ResultObject =
export type Result = Record<string, Record<string, ResultObject>>;
export interface Context {
fixturesPath: string;
fixturesURL: string;
}