We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de47eb commit 5a7f6b5Copy full SHA for 5a7f6b5
packages/utils/src/lib/wal.ts
@@ -160,10 +160,10 @@ export class WriteAheadLogFile<T extends WalRecord = WalRecord>
160
* @param options - Configuration options
161
*/
162
/** 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> }) {
+ constructor(options: { file: string; codec: Codec<T, string, unknown> }) {
164
this.#file = options.file;
165
const c = createTolerantCodec(options.codec);
166
- this.#decode = c.decode;
+ this.#decode = c.decode as Codec<T | InvalidEntry>['decode'];
167
this.#encode = c.encode;
168
}
169
0 commit comments