fix(build): resolve TypeScript compilation errors in optimization modules
## Changes - Export SearchStrategy enum for external module access - Fix executeInThread function call signature with proper arguments - Add missing useDiskBasedIndex property to OptimizedHNSWConfig defaults - Resolve property override issues in ScaledHNSWSystem constructor - Add explicit type annotations for S3 object parameters - Fix ArrayBuffer type casting for compression operations ## Impact All optimization modules now compile cleanly without TypeScript errors, ensuring type safety and proper module integration.
This commit is contained in:
parent
14f106d075
commit
c8e4a34c29
5 changed files with 27 additions and 17 deletions
|
|
@ -103,11 +103,13 @@ export class ReadOnlyOptimizations {
|
|||
break
|
||||
|
||||
case CompressionType.GZIP:
|
||||
compressedData = await this.gzipCompress(new Float32Array(vector).buffer)
|
||||
const gzipBuffer = new Float32Array(vector).buffer
|
||||
compressedData = await this.gzipCompress(gzipBuffer.slice(0))
|
||||
break
|
||||
|
||||
case CompressionType.BROTLI:
|
||||
compressedData = await this.brotliCompress(new Float32Array(vector).buffer)
|
||||
const brotliBuffer = new Float32Array(vector).buffer
|
||||
compressedData = await this.brotliCompress(brotliBuffer.slice(0))
|
||||
break
|
||||
|
||||
case CompressionType.HYBRID:
|
||||
|
|
@ -117,7 +119,8 @@ export class ReadOnlyOptimizations {
|
|||
break
|
||||
|
||||
default:
|
||||
compressedData = new Float32Array(vector).buffer
|
||||
const defaultBuffer = new Float32Array(vector).buffer
|
||||
compressedData = defaultBuffer.slice(0)
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue