Skip to content

Commit 75e5691

Browse files
committed
more type annotation
1 parent 9e8fc15 commit 75e5691

17 files changed

Lines changed: 20 additions & 17 deletions

File tree

‎lua/wikis/ageofempires/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Config.weights = {
214214
--- See also the EXTRA_DROP_OFF_TYPES.
215215
---@param tier string|integer
216216
---@param tierType string
217-
---@return fun(score: number, placement: number): number
217+
---@return NotabilityCheckerDropOffFunction
218218
function Config.placementDropOffFunction(tier, tierType)
219219
if tierType ~= nil and Table.includes(Config.EXTRA_DROP_OFF_TYPES, tierType:lower()) then
220220
return function(score, placement) return score / (placement * placement) end

‎lua/wikis/apexlegends/NotabilityChecker/config.lua‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute
66
--
77

8+
---@class ApexLegendsNotabilityCheckerConfig: NotabilityCheckerConfig
89
local Config = {}
910

1011
-- These are constants, you don't need to touch them
@@ -205,7 +206,7 @@ Config.weights = {
205206
--- See also the EXTRA_DROP_OFF_TYPES.
206207
---@param tier string|integer
207208
---@param tierType string
208-
---@return fun(number, number): number
209+
---@return NotabilityCheckerDropOffFunction
209210
function Config.placementDropOffFunction(tier, tierType)
210211

211212
return function(score, placement)

‎lua/wikis/brawlstars/NotabilityChecker/config.lua‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute
66
--
77

8+
---@class BrawlStarsNotabilityCheckerConfig: NotabilityCheckerConfig
89
local Config = {}
910

1011
-- These are constants, you don't need to touch them
@@ -194,7 +195,7 @@ Config.weights = {
194195
--- a first placement should score more than a 10th placement.
195196
---@param tier string|integer
196197
---@param tierType string
197-
---@return fun(number, number): number
198+
---@return NotabilityCheckerDropOffFunction
198199
function Config.placementDropOffFunction(tier, tierType)
199200
return function(score, placement)
200201
if tierType == Config.TIER_TYPE_QUALIFIER or

‎lua/wikis/callofduty/NotabilityChecker/config.lua‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute
66
--
77

8+
---@class CallofDutyNotabilityCheckerConfig: NotabilityCheckerConfig
89
local Config = {}
910

1011
-- These are constants, you don't need to touch them
@@ -194,7 +195,7 @@ Config.weights = {
194195
--- a first placement should score more than a 10th placement.
195196
---@param tier string|integer
196197
---@param tierType string
197-
---@return fun(number, number): number
198+
---@return NotabilityCheckerDropOffFunction
198199
function Config.placementDropOffFunction(tier, tierType)
199200

200201
return function(score, placement)

‎lua/wikis/clashofclans/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Config.weights = {
233233
--- a first placement should score more than a 10th placement.
234234
---@param tier string|integer
235235
---@param tierType string
236-
---@return fun(number, number): number
236+
---@return NotabilityCheckerDropOffFunction
237237
function Config.placementDropOffFunction(tier, tierType)
238238

239239
return function(score, placement)

‎lua/wikis/deadlock/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Config.weights = {
205205
--- See also the EXTRA_DROP_OFF_TYPES.
206206
---@param tier string|integer
207207
---@param tierType string
208-
---@return fun(number, number): number
208+
---@return NotabilityCheckerDropOffFunction
209209
function Config.placementDropOffFunction(tier, tierType)
210210
return function(score, placement)
211211
if (tier == 1 and placement <= 4)

‎lua/wikis/freefire/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Config.weights = {
214214
--- a first placement should score more than a 10th placement.
215215
---@param tier string|integer
216216
---@param tierType string
217-
---@return fun(number, number): number
217+
---@return NotabilityCheckerDropOffFunction
218218
function Config.placementDropOffFunction(tier, tierType)
219219

220220
return function(score, placement)

‎lua/wikis/geoguessr/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Config.scoreRangeQuali = {5, 3, 2, 0.5, 0.5}
275275
--- See also the EXTRA_DROP_OFF_TYPES and NO_POINTS_TYPES.
276276
---@param tier string|integer
277277
---@param tierType string
278-
---@return fun(number, number): number
278+
---@return NotabilityCheckerDropOffFunction
279279
function Config.placementDropOffFunction(tier, tierType)
280280
-- Return scoreRangeQuali or score if tiertype is not equal to general
281281
if (tierType ~= nil) and (tierType:lower() ~= Config.TIER_TYPE_GENERAL) then

‎lua/wikis/halo/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Config.weights = {
225225
--- See also the EXTRA_DROP_OFF_TYPES.
226226
---@param tier string|integer
227227
---@param tierType string
228-
---@return fun(number, number): number
228+
---@return NotabilityCheckerDropOffFunction
229229
function Config.placementDropOffFunction(tier, tierType)
230230
if tierType ~= nil and Table.includes(Config.EXTRA_DROP_OFF_TYPES, tierType:lower()) then
231231
return function(score, placement) return score / (placement * placement) end

‎lua/wikis/honorofkings/NotabilityChecker/config.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Config.weights = {
158158
--- See also the EXTRA_DROP_OFF_TYPES.
159159
---@param tier string|integer
160160
---@param tierType string
161-
---@return fun(number, number): number
161+
---@return NotabilityCheckerDropOffFunction
162162
function Config.placementDropOffFunction(tier, tierType)
163163
return function(score, placement)
164164
if (score == 0)

0 commit comments

Comments
 (0)