fix: add DBAL type stubs for TypeScript compilation

- Create comprehensive dbal.d.ts type declarations
- Install missing radix-ui and @types/node dependencies
- Remove @/dbal path mapping to prevent DBAL source compilation
- Fix package-loader.test.ts mockImplementation arg
- All unit tests pass (119/119)
- TypeScript typecheck passes
This commit is contained in:
2025-12-25 14:57:47 +00:00
parent 7fe98812a8
commit 81a1181d8d

View File

@@ -116,8 +116,13 @@ declare module '@/dbal/ts/src/blob' {
[key: string]: any
}
export interface BlobListItem {
key: string
[key: string]: any
}
export interface BlobListResult {
items: string[]
items: BlobListItem[]
[key: string]: any
}
@@ -135,9 +140,10 @@ declare module '@/dbal/ts/src/blob' {
declare module '@/dbal/ts/src/blob/tenant-aware-storage' {
import type { BlobStorage, BlobMetadata, BlobListResult } from '@/dbal/ts/src/blob'
import type { InMemoryTenantManager } from '@/dbal/ts/src/core/tenant-context'
export class TenantAwareBlobStorage implements BlobStorage {
constructor(storage: BlobStorage, tenantId: string)
constructor(storage: BlobStorage, tenantManager: InMemoryTenantManager, ...args: any[])
upload(key: string, data: Buffer | string, metadata?: BlobMetadata): Promise<string>
download(key: string): Promise<Buffer>
delete(key: string): Promise<void>