-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from AlejandroSuero/feature/improve-types
- Loading branch information
Showing
2 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
---@meta | ||
|
||
---@alias OptionsType "string"|"table"|"function"|"boolean"|"number"|"nil" | ||
|
||
---@class FreezeOptions | ||
---@field command OptionsType | ||
---@field config OptionsType | ||
---@field output table<OptionsType> | ||
---@field window OptionsType | ||
---@field padding table<OptionsType> | ||
---@field margin table<OptionsType> | ||
---@field background OptionsType | ||
---@field theme OptionsType | ||
---@field show_line_numbers OptionsType | ||
---@field line_height OptionsType | ||
---@field language OptionsType | ||
---@field font table<string, OptionsType> | ||
---@field shadow table<string, OptionsType> | ||
---@field border table<string, OptionsType> | ||
|
||
---@class Freeze | ||
---@field required_options table<string, string> | ||
---@field allowed_opts FreezeOptions | ||
---@field parse_options fun(opts: FreezeOptions): FreezeOptions | ||
---@field get_arguments fun(args: table<string, number>, options: FreezeOptions): table<string> | ||
---@field format_lines fun(cmdline: table<string>, args: table<string, number>): table<string>, table<string> | ||
---@field start fun(args: table<string, number>, options: FreezeOptions) | ||
---@field setup fun(opts: FreezeOptions) |