docs: Add comments and type annotations for sorting comparators (#1687)

This commit is contained in:
Jongwook Choi
2023-08-26 11:31:28 -04:00
committed by GitHub
parent 51f1e11a89
commit 026ef9445e
2 changed files with 50 additions and 13 deletions

View File

@@ -140,7 +140,7 @@ cmp.ItemField = {
---@class cmp.SortingConfig
---@field public priority_weight integer
---@field public comparators function[]
---@field public comparators cmp.Comparator[]
---@class cmp.FormattingConfig
---@field public fields cmp.ItemField[]