typeof is translated to type, if there is parameter named type it is not renamed. For example
const f = (type: number | ((x: number) => number)): number => (typeof type === 'number' ? type : type(42))
gives
local f = function(type) return (__TS__Ternary((type(type) == "table" and "object" or type(type))=="number", function() return type end, function() return type(42) end)) end
which won't work.
typeofis translated totype, if there is parameter namedtypeit is not renamed. For examplegives
which won't work.