2023-07-22 13:25:44 +01:00
|
|
|
export type Source = {
|
|
|
|
path: string,
|
|
|
|
line: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type FunctionParam = {
|
|
|
|
name: string,
|
|
|
|
desc: string,
|
|
|
|
lua_type: string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type FunctionReturn = {
|
|
|
|
desc: string,
|
|
|
|
lua_type: string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Function = {
|
|
|
|
name: string,
|
|
|
|
desc: string,
|
|
|
|
params: { FunctionParam },
|
|
|
|
returns: { FunctionReturn },
|
|
|
|
function_type: string,
|
2023-09-17 18:46:44 +01:00
|
|
|
tags: { string }?,
|
2023-07-22 13:25:44 +01:00
|
|
|
source: Source,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Property = {
|
|
|
|
name: string,
|
|
|
|
desc: string,
|
|
|
|
lua_type: string,
|
2023-09-17 18:46:44 +01:00
|
|
|
tags: { string }?,
|
2023-07-22 13:25:44 +01:00
|
|
|
source: Source,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Type = {
|
|
|
|
name: string,
|
|
|
|
desc: string,
|
|
|
|
source: Source,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Item = {
|
|
|
|
name: string,
|
|
|
|
desc: string,
|
|
|
|
functions: { Function },
|
|
|
|
properties: { Property },
|
|
|
|
types: { Type },
|
|
|
|
source: Source,
|
|
|
|
}
|
|
|
|
|
|
|
|
return {}
|