awesomewm.d.tl/types/luassert/stub.d.tl

30 lines
587 B
Plaintext
Raw Permalink Normal View History

2023-04-17 00:02:18 +02:00
local record stub
record Defaults
returns:function(...:any)
invokes:function(function(...:any))
end
record OnCallWith
returns:function(...:any)
invokes:function(function(...:any))
end
clear:function(self:stub):stub
revert:function(self:stub):stub
on_call_with:function(...:any):OnCallWith
returns:function(...:any):stub
invokes:function(function(...:any)):stub
-- table, key, return values
new:function(any, string, ...:any):stub
by_default:Defaults
metamethod __call: function(self: stub, ...:any)
end
return stub