Skip to content

Commit 8913e54

Browse files
committed
fix: type annotation for evdev.device method :new
1 parent 4855181 commit 8913e54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

evdev/device.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ local function init(class, fd_or_pathname, flags)
4646
return self
4747
end
4848

49-
---@override fun(): Device
50-
---@override fun(fd: number): Device
51-
---@override fun(pathname: string, flags: number[]): Device
49+
---@overload fun(self): Device
50+
---@overload fun(self, fd: number): Device
51+
---@overload fun(self, pathname: string, flags: number[]): Device
5252
---@param fd_or_pathname? number|string
5353
---@param flags? nil|number[]
5454
function Device:new(fd_or_pathname, flags)

0 commit comments

Comments
 (0)