File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class LogEncoder {
2424
2525 public serialize ( log : Log , params : SerializeParams = { } ) : types . LogComponents {
2626 if ( params . noView && params . model === 'sidecar' ) throw new Error ( 'SIDECAR_MODEL_WITHOUT_VIEW' ) ;
27- const metadata : types . LogMetadata = [ { } , FileModelEncoding . Auto ] ;
27+ const metadata : types . LogHeader = [ { } , FileModelEncoding . Auto ] ;
2828 let model : Uint8Array | unknown | null = null ;
2929 const modelFormat = params . model ?? 'sidecar' ;
3030 switch ( modelFormat ) {
Original file line number Diff line number Diff line change 11import type { FileModelEncoding } from './constants' ;
22
3- export type LogMetadata = [
4- // biome-ignore lint: allow brackets
5- map : { } ,
3+ export type LogHeader < LogMetadata extends Record < string , unknown > = Record < string , unknown > > = [
4+ map : LogMetadata ,
65 modelFormat : FileModelEncoding ,
76] ;
87
9- export type LogComponents = [
8+ export type LogComponents < LogMetadata extends Record < string , unknown > = Record < string , unknown > > = [
109 view : unknown | null ,
11- metadata : LogMetadata ,
10+ header : LogHeader < LogMetadata > ,
1211 model : Uint8Array | unknown | null ,
1312 history : LogHistory ,
1413] ;
You can’t perform that action at this time.
0 commit comments