Merge pull request 'Add `gears_shape_function` `type_fix`' (#70) from fix/gears-shape-function-type into master
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/lint Pipeline was successful Details

Reviewed-on: #70
This commit is contained in:
Aire-One 2022-12-30 20:54:43 +01:00
commit b9a085375f
1 changed files with 3 additions and 2 deletions

View File

@ -1,19 +1,20 @@
local List = require "pl.List"
local Map = require "pl.Map"
local gears_shape_function = "function(cr: any, width: integer, height: integer)"
local type_fix <const> : Map<string, string> = Map({
awesome = "awesome",
Awesome = "awesome",
bool = "boolean",
client = "client",
Client = "client",
["gears.shape"] = "Shape",
["gears.shape"] = gears_shape_function,
["gears.surface"] = "Surface",
image = "Image",
int = "integer",
screen = "screen",
Screen = "screen",
shape = "Shape",
shape = gears_shape_function,
surface = "Surface",
tag = "tag",
Tag = "tag",