Files
metabuilder/packages/ui_auth/seed/scripts/gate/init.lua
2025-12-30 12:45:27 +00:00

16 lines
378 B
Lua

-- Gate module facade
-- Re-exports all gate functions for backward compatibility
local check_mod = require("gate.check")
local wrap_mod = require("gate.wrap")
---@class GateModule
---@field check fun(ctx: GateContext): CheckResult
---@field wrap fun(ctx: GateContext): UIComponent|table
local M = {}
M.check = check_mod.check
M.wrap = wrap_mod.wrap
return M