Skip to content

Commit 0edcac1

Browse files
committed
feat(luau): convert 41 trivial files to --!strict typing
Convert small, simple Luau files from --!nonstrict to --!strict. These are files with straightforward patterns (constants, TieDefinition interfaces, BinderProvider registrations, factory returns, and simple utility functions) where strict mode requires no structural changes. Files needing type annotations (KinematicUtils, IKRigUtils, TeamKillTrackerUtils, PlayerKillTrackerUtils, RoguePropertyBaseValueTypeUtils) received explicit parameter and return type annotations. https://claude.ai/code/session_01BXcv4dUAUw7hWPE5F5nRPL
1 parent 7f6f73d commit 0edcac1

File tree

38 files changed

+47
-47
lines changed

38 files changed

+47
-47
lines changed

src/animationprovider/src/Shared/AnimationProvider.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
Provides animations for anything tagged with "AnimationContainer" and from a folder named "Animations"
44
in ReplicatedStorage. See [TemplateProvider].

src/bodycolorsutils/src/Shared/BodyColorsDataConstants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class BodyColorsDataConstants
44
]=]

src/chatproviderservice/src/Shared/ChatProviderTranslator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[[
33
@class ChatProviderTranslator
44
]]

src/clipcharacters/src/Shared/ClipCharactersServiceConstants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class ClipCharacterConstants
44
]=]

src/cmdrservice/src/Server/CmdrTemplateProviderServer/CmdrCommandDefinitionTemplate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
Generic command definition template
44
@class CmdrCommandDefinitionTemplate

src/cmdrservice/src/Server/CmdrTemplateProviderServer/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
Retrieves CmdrTemplateProviderServer
44
@class CmdrTemplateProviderServer

src/deathreport/src/Client/DeathReportBindersClient.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class DeathReportBindersClient
44
]=]

src/deathreport/src/Server/DeathReportBindersServer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class DeathReportBindersServer
44
]=]

src/deathreport/src/Shared/DeathReportServiceConstants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class DeathReportServiceConstants
44
]=]

src/deathreport/src/Shared/Stats/PlayerKillTrackerUtils.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--!nonstrict
1+
--!strict
22
--[=[
33
@class PlayerKillTrackerUtils
44
]=]
@@ -10,7 +10,7 @@ local RxBinderUtils = require("RxBinderUtils")
1010

1111
local PlayerKillTrackerUtils = {}
1212

13-
function PlayerKillTrackerUtils.create(binder, player)
13+
function PlayerKillTrackerUtils.create(binder: any, player: Player): IntValue
1414
assert(typeof(player) == "Instance", "Bad player")
1515

1616
local score = Instance.new("IntValue")
@@ -24,14 +24,14 @@ function PlayerKillTrackerUtils.create(binder, player)
2424
return score
2525
end
2626

27-
function PlayerKillTrackerUtils.observeBrio(binder, player)
27+
function PlayerKillTrackerUtils.observeBrio(binder: any, player: Player): any
2828
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
2929

3030
-- This ain't performant, but it's ok
3131
return RxBinderUtils.observeBoundChildClassBrio(binder, player)
3232
end
3333

34-
function PlayerKillTrackerUtils.getPlayerKillTracker(binder, team)
34+
function PlayerKillTrackerUtils.getPlayerKillTracker(binder: any, team: Instance): any
3535
return BinderUtils.findFirstChild(binder, team)
3636
end
3737

0 commit comments

Comments
 (0)