mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
fix(types): replace 'any' with 'unknown' in DBALConfig and DBALUser interfaces for better type safety
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
Reference in New Issue
Block a user