remove_types
Added in 0.11.0
This rule removes all Luau type declarations and annotations.
Examples
local var: number? = nil
local var= nil
type Array<T> = { T }
local test: Array<string> = {}
local test= {}
return value :: string
return value
local function getAverage(array: { string }): number
local sum: number = 0
for _, element: number in array do
sum += tonumber(element) :: number
end
return sum / #array
end
local function getAverage(array)
local sum= 0
for _, element in array do
sum += (tonumber(element) )
end
return sum / #array
end
Input | Output |
---|---|
|
|
|
|
|
|
|
|