What does export do?

export is a keyword that only works for module scripts. It’s used for Luau’s type checker.

It gives scripts the ability to access types defined within it, outside of it.

-- module script
local module = {}

export type dictionary = {[any]: any}

return module
-- from another script
local module = require(ModuleScript)

-- you access the type by doing "ModuleScript.Type"
local _table: module.dictionary = {
    index = "value",
}

Edit 5/8/23
For anyone curious, Roblox does have a documentation site for the Type Checker:

75 Likes