mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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:
10
frontends/nextjs/src/types/dbal.d.ts
vendored
10
frontends/nextjs/src/types/dbal.d.ts
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user