From 1195c31279a0bbe5f255f18261c827b51cb273f6 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 6 Jul 2023 09:41:29 +0200 Subject: [PATCH] test: fix types (#23202) --- test/fixtures.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/fixtures.ts b/test/fixtures.ts index 35afd650a566ee..a63fe8c415e98e 100644 --- a/test/fixtures.ts +++ b/test/fixtures.ts @@ -4,7 +4,6 @@ import { jest } from '@jest/globals'; import callsite from 'callsite'; import { DirectoryJSON, fs as memfs, vol } from 'memfs'; import type { TDataOut } from 'memfs/lib/encoding'; -import type { IOptions } from 'memfs/lib/volume'; import upath from 'upath'; // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion @@ -109,12 +108,9 @@ export class Fixtures { } } -export function readFile( - fileName: string, - options: IOptions -): Promise { +export function readFile(fileName: string, options: any): Promise { if (fileName.endsWith('.wasm') || fileName.endsWith('.wasm.gz')) { - return fs.promises.readFile(fileName, options as any); + return fs.promises.readFile(fileName, options); } return memfs.promises.readFile(fileName, options);