Skip to content

Commit 5a7f6b5

Browse files
committed
refactor: fix lint
1 parent 4de47eb commit 5a7f6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/lib/wal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ export class WriteAheadLogFile<T extends WalRecord = WalRecord>
160160
* @param options - Configuration options
161161
*/
162162
/** Codec may decode to a supertype of T (e.g. TraceEvent when T is a narrower event type). */
163-
constructor(options: { file: string; codec: Codec<T, string, any> }) {
163+
constructor(options: { file: string; codec: Codec<T, string, unknown> }) {
164164
this.#file = options.file;
165165
const c = createTolerantCodec(options.codec);
166-
this.#decode = c.decode;
166+
this.#decode = c.decode as Codec<T | InvalidEntry>['decode'];
167167
this.#encode = c.encode;
168168
}
169169

0 commit comments

Comments
 (0)