#Types

1 messages · Page 1 of 1 (latest)

queen tide
#

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

left locust
#
type option = "A" | "B" | "C"

function test(x: option)