A common pattern in libraries is to have a dedicated Types library, however, it looks like Wax doesn't handle types that use the A.B syntax that well. (which is to be expected, luau is silly).
If the library does use a Types module (which can usually be detected by the module not returning anything nil), it should probably unwrap the types and remove the export keyword if neccessary.
Best compromise I can think of is to wrap an exported type as ModuleName_Type in the bundle.
A common pattern in libraries is to have a dedicated Types library, however, it looks like Wax doesn't handle types that use the
A.B
syntax that well. (which is to be expected, luau is silly).If the library does use a Types module (which can usually be detected by the module not returning anything
nil
), it should probably unwrap the types and remove theexport
keyword if neccessary.Best compromise I can think of is to wrap an exported type as
ModuleName_Type
in the bundle.