I have a node buffer
const meter = {
readFunction: 'readUIntLE',
}
const buf = Buffer.from('01590D000022B65160010044BC1F000003036801', 'hex')
const method = meter.readFunction
I want to execute buf[method](0,1) but typescript warns me with an error
Element implicitly has an 'any' type because index expression is not of type 'number'
Eval doesn't look good to execute, but I am not too sure how to get rid or an error by other means