Skip to content

Function: requireFresh() ​

ts
function requireFresh<T>(name: string): T;

Require a Lua module afresh, dropping the copy require cached, so module-scope code runs again.

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterTypeDescription
namestringLua module name.

Returns ​

T

What the module returns.