fix(types): enhance type safety in executeLuaScript, interpolateValue, evaluateConditional, and resolveDataSource methods

This commit is contained in:
2025-12-30 00:48:17 +00:00
parent d818a93c0f
commit 309ef64fd6

View File

@@ -20,7 +20,7 @@ export class DeclarativeComponentRenderer {
registerLuaScript(this.state, scriptId, script)
}
async executeLuaScript(scriptId: string, params: any[]): Promise<any> {
async executeLuaScript(scriptId: string, params: unknown[]): Promise<unknown> {
return executeLuaScript(this.state, scriptId, params)
}
@@ -32,15 +32,15 @@ export class DeclarativeComponentRenderer {
return hasComponentConfig(this.state, componentType)
}
interpolateValue(template: string, context: Record<string, any>): string {
interpolateValue(template: string, context: Record<string, unknown>): string {
return interpolateValue(template, context)
}
evaluateConditional(condition: string | boolean, context: Record<string, any>): boolean {
evaluateConditional(condition: string | boolean, context: Record<string, unknown>): boolean {
return evaluateConditional(condition, context)
}
resolveDataSource(dataSource: string, context: Record<string, any>): any[] {
resolveDataSource(dataSource: string, context: Record<string, unknown>): unknown[] {
return resolveDataSource(dataSource, context)
}
}