Skip to main content

Packages

Functions

getGlobalAPI

Packages.getGlobalAPI() → ()

Returns the global API that should be put into _G.

getModules

Packages.getModules() → ()

Returns all the modules that registered themselves with the _G api.

callLifecycles

Packages.callLifecycles() → ()

Calls the entry point of every package.

Show raw api
{
    "functions": [
        {
            "name": "getGlobalAPI",
            "desc": "Returns the global API that should be put into `_G`.",
            "params": [],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "packages/sapling/source/modules/Packages.luau"
            }
        },
        {
            "name": "getModules",
            "desc": "Returns all the modules that registered themselves with the `_G` api.",
            "params": [],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 25,
                "path": "packages/sapling/source/modules/Packages.luau"
            }
        },
        {
            "name": "callLifecycles",
            "desc": "Calls the entry point of every package.",
            "params": [],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 32,
                "path": "packages/sapling/source/modules/Packages.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Packages",
    "desc": "",
    "source": {
        "line": 9,
        "path": "packages/sapling/source/modules/Packages.luau"
    }
}