mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
fix(types): enhance type safety in executeLuaScript, interpolateValue, evaluateConditional, and resolveDataSource methods
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user