From 309ef64fd64af68f892933815dfe2d3dfe62b86b Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Tue, 30 Dec 2025 00:48:17 +0000 Subject: [PATCH] fix(types): enhance type safety in executeLuaScript, interpolateValue, evaluateConditional, and resolveDataSource methods --- .../renderer/renderer-class.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/nextjs/src/lib/rendering/declarative-component-renderer/renderer/renderer-class.ts b/frontends/nextjs/src/lib/rendering/declarative-component-renderer/renderer/renderer-class.ts index 1104cb340..251ac7812 100644 --- a/frontends/nextjs/src/lib/rendering/declarative-component-renderer/renderer/renderer-class.ts +++ b/frontends/nextjs/src/lib/rendering/declarative-component-renderer/renderer/renderer-class.ts @@ -20,7 +20,7 @@ export class DeclarativeComponentRenderer { registerLuaScript(this.state, scriptId, script) } - async executeLuaScript(scriptId: string, params: any[]): Promise { + async executeLuaScript(scriptId: string, params: unknown[]): Promise { return executeLuaScript(this.state, scriptId, params) } @@ -32,15 +32,15 @@ export class DeclarativeComponentRenderer { return hasComponentConfig(this.state, componentType) } - interpolateValue(template: string, context: Record): string { + interpolateValue(template: string, context: Record): string { return interpolateValue(template, context) } - evaluateConditional(condition: string | boolean, context: Record): boolean { + evaluateConditional(condition: string | boolean, context: Record): boolean { return evaluateConditional(condition, context) } - resolveDataSource(dataSource: string, context: Record): any[] { + resolveDataSource(dataSource: string, context: Record): unknown[] { return resolveDataSource(dataSource, context) } }