fix(visitor/type_mapping): update mapping
This commit is contained in:
parent
3680c1ebb5
commit
c8ff0aaaec
|
@ -4,8 +4,7 @@ local type Node = require("types.Node")
|
||||||
local gears_shape_function = "function(cr: any, width: integer, height: integer)"
|
local gears_shape_function = "function(cr: any, width: integer, height: integer)"
|
||||||
|
|
||||||
local type_map <const>: { string : string } = {
|
local type_map <const>: { string : string } = {
|
||||||
awesome = "awesome",
|
awesome = "Awesome",
|
||||||
Awesome = "awesome",
|
|
||||||
bool = "boolean",
|
bool = "boolean",
|
||||||
client = "Client",
|
client = "Client",
|
||||||
["gears.shape"] = gears_shape_function,
|
["gears.shape"] = gears_shape_function,
|
||||||
|
@ -16,8 +15,10 @@ local type_map <const>: { string : string } = {
|
||||||
shape = gears_shape_function,
|
shape = gears_shape_function,
|
||||||
surface = "Surface",
|
surface = "Surface",
|
||||||
tag = "Tag",
|
tag = "Tag",
|
||||||
["wibox.widget"] = "Widget",
|
widget = "wibox.widget",
|
||||||
widget = "Widget",
|
|
||||||
|
-- fixes we shouldn't have to do (We need to PR Awesome to fix the doc)
|
||||||
|
timer = "gears.timer",
|
||||||
}
|
}
|
||||||
|
|
||||||
local function get_type(t: string): string
|
local function get_type(t: string): string
|
||||||
|
|
Loading…
Reference in New Issue