From aebf2d12f4d65233bc3e06e32753bfbd4d036cfb Mon Sep 17 00:00:00 2001 From: mrazauskas Date: Thu, 28 May 2026 10:41:01 +0300 Subject: [PATCH] fix: update `VFSStatWatcher` typings Signed-off-by: mrazauskas --- index.d.ts | 2 ++ tsconfig.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index e6ced40..1fd647c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -107,7 +107,9 @@ export class VFSWatchAsyncIterable implements AsyncIterable { } export class VFSStatWatcher extends EventEmitter { + // @ts-expect-error Implementation overrides the method addListener(listener: (curr: VirtualStats, prev: VirtualStats) => void): void; + // @ts-expect-error Implementation overrides the method removeListener(listener: (curr: VirtualStats, prev: VirtualStats) => void): boolean; hasNoListeners(): boolean; stop(): void; diff --git a/tsconfig.json b/tsconfig.json index bcb5361..3e99d77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,12 @@ { "compilerOptions": { "strict": true, - "module": "commonjs", + "module": "node16", "target": "es2022", - "moduleResolution": "node", + "moduleResolution": "node16", "declaration": true, "esModuleInterop": true, - "baseUrl": ".", + "types": ["node"], "paths": { "@platformatic/vfs": ["."] }