2022-03-30 08:33:56 +00:00
|
|
|
---@meta
|
|
|
|
|
|
|
|
---@class class
|
|
|
|
---@field static any
|
|
|
|
--- middleclass
|
|
|
|
class = {}
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@param class class
|
|
|
|
---@return boolean
|
|
|
|
function class:isSubclassOf(class) end
|
|
|
|
|
2022-03-30 08:33:56 +00:00
|
|
|
---@class Object
|
|
|
|
---@field class class
|
|
|
|
Object = {}
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@generic T
|
|
|
|
---@param self T
|
2022-03-30 08:33:56 +00:00
|
|
|
function Object:initialize(...) end
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@generic T
|
|
|
|
---@param self T
|
|
|
|
---@return T
|
|
|
|
function Object:new(...)end
|
2022-03-30 08:33:56 +00:00
|
|
|
|
|
|
|
---@param name string
|
|
|
|
function Object:subclass(name)end
|
|
|
|
|
|
|
|
---@param class class
|
|
|
|
---@return boolean
|
|
|
|
function Object:isInstanceOf(class) end
|
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@param class class
|
|
|
|
---@return boolean
|
|
|
|
function Object:isSubclassOf(class) end
|
|
|
|
|
2022-03-30 08:33:56 +00:00
|
|
|
---@class json
|
|
|
|
json = {}
|
|
|
|
|
|
|
|
--- convert obj to JSON string
|
|
|
|
---@return string json
|
|
|
|
function json.encode(obj)end
|
|
|
|
|
|
|
|
--- convert JSON string to lua types
|
|
|
|
---@param str string # JSON string to decode
|
|
|
|
---@return table|number|string
|
|
|
|
function json.decode(str)end
|