How to type callbacks which are variadic functions?

Title says it all.

function testFunction(testCallBack: (...: any) -> string?)

does not work.

According to Type checking - Luau (The “Variadic types” section specifically):

function testFunction(testCallBack: (...any) -> string?)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.