#Types
1 messages · Page 1 of 1 (latest)
type option = "A" | "B" | "C"
function test(x: option)
1 messages · Page 1 of 1 (latest)
does anyone know a better way to assign possible string parameters without having to type each one out
example:
local function test(x : "something" | "something else" | "and another thing") end
is there a better way to do this or do i need to type "something" "something else" and then "and another thing" every time
type option = "A" | "B" | "C"
function test(x: option)