2022-03-30 16:33:56 +08:00
|
|
|
---@meta
|
|
|
|
|
|
|
|
---@class class
|
2023-03-26 17:32:45 +08:00
|
|
|
---@field public static any
|
2022-03-30 16:33:56 +08:00
|
|
|
--- middleclass
|
|
|
|
class = {}
|
|
|
|
|
2023-02-26 15:01:14 +08:00
|
|
|
---@param class class|Object
|
2022-04-01 20:51:01 +08:00
|
|
|
---@return boolean
|
|
|
|
function class:isSubclassOf(class) end
|
|
|
|
|
2022-03-30 16:33:56 +08:00
|
|
|
---@class Object
|
2023-03-26 17:32:45 +08:00
|
|
|
---@field public class class
|
2023-02-26 15:01:14 +08:00
|
|
|
Object = { static = {} }
|
2022-03-30 16:33:56 +08:00
|
|
|
|
2022-04-01 20:51:01 +08:00
|
|
|
---@generic T
|
|
|
|
---@param self T
|
2022-03-30 16:33:56 +08:00
|
|
|
function Object:initialize(...) end
|
|
|
|
|
2022-04-01 20:51:01 +08:00
|
|
|
---@generic T
|
|
|
|
---@param self T
|
|
|
|
---@return T
|
|
|
|
function Object:new(...)end
|
2022-03-30 16:33:56 +08:00
|
|
|
|
|
|
|
---@param name string
|
|
|
|
function Object:subclass(name)end
|
|
|
|
|
2023-02-26 15:01:14 +08:00
|
|
|
---@param class class|Object
|
2022-03-30 16:33:56 +08:00
|
|
|
---@return boolean
|
|
|
|
function Object:isInstanceOf(class) end
|
|
|
|
|
2022-03-31 13:29:23 +08:00
|
|
|
---@param class class
|
|
|
|
---@return boolean
|
|
|
|
function Object:isSubclassOf(class) end
|
|
|
|
|
2022-03-30 16:33:56 +08:00
|
|
|
---@class json
|
|
|
|
json = {}
|
|
|
|
|
|
|
|
--- convert obj to JSON string
|
|
|
|
---@return string json
|
|
|
|
function json.encode(obj)end
|
|
|
|
|
|
|
|
--- convert JSON string to lua types
|
2022-04-02 21:39:44 +08:00
|
|
|
---@param str string @ JSON string to decode
|
2023-02-26 15:01:14 +08:00
|
|
|
---@return any
|
2022-03-30 16:33:56 +08:00
|
|
|
function json.decode(str)end
|