Skip to content

Commit

Permalink
minor fix to defs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreLouisIssa committed May 19, 2024
1 parent 567c671 commit b11df9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Improved some of the descriptions in the definitions

### Fixed

- Fixed some incorrect types in the definitions


## [2.0.1] - 2024-05-19

### Changed
Expand Down
6 changes: 4 additions & 2 deletions src/def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ local chalk = {}
---@param path string name of (or path to) the config file to keep updated
---@param default? table lua config table to use as a default
---@param descript? table<any,string> recursive table of descriptions of the keys in the config
---@param is_newer? fun(a: any, b:any): sign: number C-style comparison function of your config's `version` field.
---@param section? string the name of the root section of the resulting `.cfg` file
---@param is_newer? fun(a: table, b:table): b_newer_than_a: boolean compares the current config to the default to determine which is newer
---@return table wrapper a table-like wrapper around the config system
---@return table config the actual config object
function chalk.load(path,default,descript,section,is_newer) end
Expand All @@ -21,7 +22,8 @@ function chalk.load(path,default,descript,section,is_newer) end
---@param config_lua? string name of (or path to) the `lua` config file to use as a default
---@param config_cfg? string name of (or path to) the `cfg` config file to keep updated
---@param descript? table<any,string> recursive table of descriptions of the keys in the config
---@param is_newer? fun(a: any, b:any): sign: number C-style comparison function of your config's `version` field.
---@param section? string the name of the root section of the resulting `.cfg` file
---@param is_newer? fun(a: table, b:table): b_newer_than_a: boolean compares the current config to the default to determine which is newer
---@return table wrapper a table-like wrapper around the config system
---@return table config the actual config object
function chalk.auto(config_lua,config_cfg,descript,section,is_newer) end
Expand Down

0 comments on commit b11df9e

Please sign in to comment.