fix(types): replace 'any' with 'unknown' in DBALConfig and DBALUser interfaces for better type safety

This commit is contained in:
2025-12-29 23:47:39 +00:00
parent d1d0862fe9
commit 4b002d8bfa
4 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Root DBAL module declarations.
* Split from the monolithic dbal.d.ts to keep each set of exports contained.
@@ -8,7 +6,7 @@ declare module '@/dbal/development/src' {
export interface DBALConfig {
mode?: 'development' | 'production'
adapter?: string
auth?: any
auth?: Record<string, unknown>
database?: {
url?: string
}
@@ -16,7 +14,7 @@ declare module '@/dbal/development/src' {
sandbox?: 'strict' | 'permissive' | 'disabled'
enableAuditLog?: boolean
}
[key: string]: any
[key: string]: unknown
}
export interface DBALUser {
@@ -28,7 +26,7 @@ declare module '@/dbal/development/src' {
role?: string
tenantId?: string
createdAt?: number | string | Date
[key: string]: any
[key: string]: unknown
}
export interface ListResult<T> {

View File

@@ -3,6 +3,7 @@
"name": "Admin Dialog",
"version": "1.0.0",
"description": "Admin dialog components",
"icon": "static_content/icon.svg",
"author": "MetaBuilder",
"category": "ui",
"dependencies": [],

View File

@@ -3,6 +3,7 @@
"name": "Dashboard",
"version": "1.0.0",
"description": "Dashboard layouts, stat cards, and widgets",
"icon": "static_content/icon.svg",
"author": "MetaBuilder",
"category": "ui",
"dependencies": [],

View File

@@ -3,6 +3,7 @@
"name": "UI Permissions",
"version": "1.0.0",
"description": "Shared permission utilities for page access control",
"icon": "static_content/icon.svg",
"author": "MetaBuilder",
"category": "ui",
"dependencies": [],