mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
fix(lua): and_then gets self
This commit is contained in:
parent
42ae4247ce
commit
cd11b64a96
2 changed files with 11 additions and 12 deletions
1
.github/workflows/lua.yml
vendored
1
.github/workflows/lua.yml
vendored
|
@ -4,7 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- stable
|
- stable
|
||||||
- dev
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
22
dist/lua/annotations.lua
vendored
22
dist/lua/annotations.lua
vendored
|
@ -14,47 +14,47 @@
|
||||||
|
|
||||||
---@class (exact) NilPromise : Promise
|
---@class (exact) NilPromise : Promise
|
||||||
---@field await fun(self: NilPromise): nil block until promise is ready
|
---@field await fun(self: NilPromise): nil block until promise is ready
|
||||||
---@field and_then fun(cb: fun(x: nil)): nil run callback after promise is complete
|
---@field and_then fun(self: NilPromise, cb: fun(x: nil)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) StringPromise : Promise
|
---@class (exact) StringPromise : Promise
|
||||||
---@field await fun(self: StringPromise): string block until promise is ready and return value
|
---@field await fun(self: StringPromise): string block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: string)): nil run callback after promise is complete
|
---@field and_then fun(self: StringPromise, cb: fun(x: string)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) StringArrayPromise : Promise
|
---@class (exact) StringArrayPromise : Promise
|
||||||
---@field await fun(self: StringArrayPromise): string[] block until promise is ready and return value
|
---@field await fun(self: StringArrayPromise): string[] block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: string[])): nil run callback after promise is complete
|
---@field and_then fun(self: StringArrayPromise, cb: fun(x: string[])): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) ClientPromise : Promise
|
---@class (exact) ClientPromise : Promise
|
||||||
---@field await fun(self: ClientPromise): Client block until promise is ready and return value
|
---@field await fun(self: ClientPromise): Client block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: Client)): nil run callback after promise is complete
|
---@field and_then fun(self: ClientPromise, cb: fun(x: Client)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) WorkspacePromise : Promise
|
---@class (exact) WorkspacePromise : Promise
|
||||||
---@field await fun(self: WorkspacePromise): Workspace block until promise is ready and return value
|
---@field await fun(self: WorkspacePromise): Workspace block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: Workspace)): nil run callback after promise is complete
|
---@field and_then fun(self: WorkspacePromise, cb: fun(x: Workspace)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) WorkspaceEventPromise : Promise
|
---@class (exact) WorkspaceEventPromise : Promise
|
||||||
---@field await fun(self: WorkspaceEventPromise): WorkspaceEvent block until promise is ready and return value
|
---@field await fun(self: WorkspaceEventPromise): WorkspaceEvent block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: WorkspaceEvent)): nil run callback after promise is complete
|
---@field and_then fun(self: WorkspaceEventPromise, cb: fun(x: WorkspaceEvent)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) BufferControllerPromise : Promise
|
---@class (exact) BufferControllerPromise : Promise
|
||||||
---@field await fun(self: BufferControllerPromise): BufferController block until promise is ready and return value
|
---@field await fun(self: BufferControllerPromise): BufferController block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: BufferController)): nil run callback after promise is complete
|
---@field and_then fun(self: BufferControllerPromise, cb: fun(x: BufferController)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) CursorPromise : Promise
|
---@class (exact) CursorPromise : Promise
|
||||||
---@field await fun(self: CursorPromise): Cursor block until promise is ready and return value
|
---@field await fun(self: CursorPromise): Cursor block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: Cursor)): nil run callback after promise is complete
|
---@field and_then fun(self: CursorPromise, cb: fun(x: Cursor)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) MaybeCursorPromise : Promise
|
---@class (exact) MaybeCursorPromise : Promise
|
||||||
---@field await fun(self: MaybeCursorPromise): Cursor? block until promise is ready and return value
|
---@field await fun(self: MaybeCursorPromise): Cursor? block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: Cursor | nil)): nil run callback after promise is complete
|
---@field and_then fun(self: MaybeCursorPromise, cb: fun(x: Cursor | nil)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) TextChangePromise : Promise
|
---@class (exact) TextChangePromise : Promise
|
||||||
---@field await fun(self: TextChangePromise): TextChange block until promise is ready and return value
|
---@field await fun(self: TextChangePromise): TextChange block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: TextChange)): nil run callback after promise is complete
|
---@field and_then fun(self: TextChangePromise, cb: fun(x: TextChange)): nil run callback after promise is complete
|
||||||
|
|
||||||
---@class (exact) MaybeTextChangePromise : Promise
|
---@class (exact) MaybeTextChangePromise : Promise
|
||||||
---@field await fun(self: MaybeTextChangePromise): TextChange? block until promise is ready and return value
|
---@field await fun(self: MaybeTextChangePromise): TextChange? block until promise is ready and return value
|
||||||
---@field and_then fun(cb: fun(x: TextChange | nil)): nil run callback after promise is complete
|
---@field and_then fun(self: MaybeTextChangePromise, cb: fun(x: TextChange | nil)): nil run callback after promise is complete
|
||||||
|
|
||||||
-- [[ END ASYNC STUFF ]]
|
-- [[ END ASYNC STUFF ]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue