diff --git a/imports/class/shared.lua b/imports/class/shared.lua index 87816731..bf91125d 100644 --- a/imports/class/shared.lua +++ b/imports/class/shared.lua @@ -1,10 +1,6 @@ ---@diagnostic disable: invisible local getinfo = debug.getinfo -if not getinfo(1, 'S').source:match('^@@ox_lib') then - lib.print.warn('ox_lib\'s class module is experimental and may break without warning.') -end - ---Ensure the given argument or property has a valid type, otherwise throwing an error. ---@param id number | string ---@param var any @@ -132,8 +128,10 @@ end ---Creates a new class. ---@generic S : OxClass ----@param name string +---@generic T : string +---@param name `T` ---@param super? S +---@return `T` function lib.class(name, super) assertType(1, name, 'string')