diff --git a/src/animationprovider/src/Shared/AnimationProvider.lua b/src/animationprovider/src/Shared/AnimationProvider.lua index 29e7bef897..e8c116f190 100644 --- a/src/animationprovider/src/Shared/AnimationProvider.lua +++ b/src/animationprovider/src/Shared/AnimationProvider.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Provides animations for anything tagged with "AnimationContainer" and from a folder named "Animations" in ReplicatedStorage. See [TemplateProvider]. diff --git a/src/bodycolorsutils/src/Shared/BodyColorsDataConstants.lua b/src/bodycolorsutils/src/Shared/BodyColorsDataConstants.lua index 351b65b0d3..20e7ff91a9 100644 --- a/src/bodycolorsutils/src/Shared/BodyColorsDataConstants.lua +++ b/src/bodycolorsutils/src/Shared/BodyColorsDataConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class BodyColorsDataConstants ]=] diff --git a/src/chatproviderservice/src/Shared/ChatProviderTranslator.lua b/src/chatproviderservice/src/Shared/ChatProviderTranslator.lua index 95f32a4468..e2f8b4a059 100644 --- a/src/chatproviderservice/src/Shared/ChatProviderTranslator.lua +++ b/src/chatproviderservice/src/Shared/ChatProviderTranslator.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[[ @class ChatProviderTranslator ]] diff --git a/src/clipcharacters/src/Shared/ClipCharactersServiceConstants.lua b/src/clipcharacters/src/Shared/ClipCharactersServiceConstants.lua index 3dd122abcf..d17e460bfd 100644 --- a/src/clipcharacters/src/Shared/ClipCharactersServiceConstants.lua +++ b/src/clipcharacters/src/Shared/ClipCharactersServiceConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class ClipCharacterConstants ]=] diff --git a/src/cmdrservice/src/Server/CmdrTemplateProviderServer/CmdrCommandDefinitionTemplate.lua b/src/cmdrservice/src/Server/CmdrTemplateProviderServer/CmdrCommandDefinitionTemplate.lua index da913e2130..e6c807571f 100644 --- a/src/cmdrservice/src/Server/CmdrTemplateProviderServer/CmdrCommandDefinitionTemplate.lua +++ b/src/cmdrservice/src/Server/CmdrTemplateProviderServer/CmdrCommandDefinitionTemplate.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Generic command definition template @class CmdrCommandDefinitionTemplate diff --git a/src/cmdrservice/src/Server/CmdrTemplateProviderServer/init.lua b/src/cmdrservice/src/Server/CmdrTemplateProviderServer/init.lua index ce2a532823..5dd184393e 100644 --- a/src/cmdrservice/src/Server/CmdrTemplateProviderServer/init.lua +++ b/src/cmdrservice/src/Server/CmdrTemplateProviderServer/init.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Retrieves CmdrTemplateProviderServer @class CmdrTemplateProviderServer diff --git a/src/deathreport/src/Client/DeathReportBindersClient.lua b/src/deathreport/src/Client/DeathReportBindersClient.lua index 2b0aa9b6dd..0c2e2c2607 100644 --- a/src/deathreport/src/Client/DeathReportBindersClient.lua +++ b/src/deathreport/src/Client/DeathReportBindersClient.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class DeathReportBindersClient ]=] diff --git a/src/deathreport/src/Server/DeathReportBindersServer.lua b/src/deathreport/src/Server/DeathReportBindersServer.lua index 5baaf297a2..d5f486eb2c 100644 --- a/src/deathreport/src/Server/DeathReportBindersServer.lua +++ b/src/deathreport/src/Server/DeathReportBindersServer.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class DeathReportBindersServer ]=] diff --git a/src/deathreport/src/Shared/DeathReportServiceConstants.lua b/src/deathreport/src/Shared/DeathReportServiceConstants.lua index cbfccbf078..c7bb2565bd 100644 --- a/src/deathreport/src/Shared/DeathReportServiceConstants.lua +++ b/src/deathreport/src/Shared/DeathReportServiceConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class DeathReportServiceConstants ]=] diff --git a/src/deathreport/src/Shared/Stats/PlayerKillTrackerUtils.lua b/src/deathreport/src/Shared/Stats/PlayerKillTrackerUtils.lua index e947945b8f..fa53626c9d 100644 --- a/src/deathreport/src/Shared/Stats/PlayerKillTrackerUtils.lua +++ b/src/deathreport/src/Shared/Stats/PlayerKillTrackerUtils.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class PlayerKillTrackerUtils ]=] @@ -10,7 +10,7 @@ local RxBinderUtils = require("RxBinderUtils") local PlayerKillTrackerUtils = {} -function PlayerKillTrackerUtils.create(binder, player) +function PlayerKillTrackerUtils.create(binder: any, player: Player): IntValue assert(typeof(player) == "Instance", "Bad player") local score = Instance.new("IntValue") @@ -24,14 +24,14 @@ function PlayerKillTrackerUtils.create(binder, player) return score end -function PlayerKillTrackerUtils.observeBrio(binder, player) +function PlayerKillTrackerUtils.observeBrio(binder: any, player: Player): any assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player") -- This ain't performant, but it's ok return RxBinderUtils.observeBoundChildClassBrio(binder, player) end -function PlayerKillTrackerUtils.getPlayerKillTracker(binder, team) +function PlayerKillTrackerUtils.getPlayerKillTracker(binder: any, team: Instance): any return BinderUtils.findFirstChild(binder, team) end diff --git a/src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua b/src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua index 0002996214..e281c32dbe 100644 --- a/src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua +++ b/src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class TeamKillTrackerUtils ]=] @@ -10,7 +10,7 @@ local RxBinderUtils = require("RxBinderUtils") local TeamKillTrackerUtils = {} -function TeamKillTrackerUtils.create(binder) +function TeamKillTrackerUtils.create(binder: any): IntValue local score = Instance.new("IntValue") score.Name = "TeamKillTracker" score.Value = 0 @@ -20,14 +20,14 @@ function TeamKillTrackerUtils.create(binder) return score end -function TeamKillTrackerUtils.observeBrio(binder, player) +function TeamKillTrackerUtils.observeBrio(binder: any, player: Instance): any assert(typeof(player) == "Instance", "Bad player") -- This ain't performant, but it's ok return RxBinderUtils.observeBoundChildClassBrio(binder, player) end -function TeamKillTrackerUtils.getTeamKillTracker(binder, team) +function TeamKillTrackerUtils.getTeamKillTracker(binder: any, team: Instance): any return BinderUtils.findFirstChild(binder, team) end diff --git a/src/gameconfig/src/Client/GameConfigBindersClient.lua b/src/gameconfig/src/Client/GameConfigBindersClient.lua index 9276cf8910..4f2aa78f4b 100644 --- a/src/gameconfig/src/Client/GameConfigBindersClient.lua +++ b/src/gameconfig/src/Client/GameConfigBindersClient.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class GameConfigBindersClient ]=] diff --git a/src/gameconfig/src/Server/GameConfigBindersServer.lua b/src/gameconfig/src/Server/GameConfigBindersServer.lua index 9acfd14898..9fda89665e 100644 --- a/src/gameconfig/src/Server/GameConfigBindersServer.lua +++ b/src/gameconfig/src/Server/GameConfigBindersServer.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class GameConfigBindersServer ]=] diff --git a/src/gameproductservice/src/Shared/Interfaces/PlayerAssetMarketTrackerInterface.lua b/src/gameproductservice/src/Shared/Interfaces/PlayerAssetMarketTrackerInterface.lua index df5350fc16..1b282a3912 100644 --- a/src/gameproductservice/src/Shared/Interfaces/PlayerAssetMarketTrackerInterface.lua +++ b/src/gameproductservice/src/Shared/Interfaces/PlayerAssetMarketTrackerInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class PlayerAssetMarketTrackerInterface ]=] diff --git a/src/gameproductservice/src/Shared/Interfaces/PlayerProductManagerInterface.lua b/src/gameproductservice/src/Shared/Interfaces/PlayerProductManagerInterface.lua index 23220c341b..889d3bd018 100644 --- a/src/gameproductservice/src/Shared/Interfaces/PlayerProductManagerInterface.lua +++ b/src/gameproductservice/src/Shared/Interfaces/PlayerProductManagerInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class PlayerProductManagerInterface ]=] diff --git a/src/humanoidspeed/src/Client/HumanoidSpeedBindersClient.lua b/src/humanoidspeed/src/Client/HumanoidSpeedBindersClient.lua index 505361a2f0..29b5ebd41c 100644 --- a/src/humanoidspeed/src/Client/HumanoidSpeedBindersClient.lua +++ b/src/humanoidspeed/src/Client/HumanoidSpeedBindersClient.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Holds binders @class HumanoidSpeedBindersClient diff --git a/src/humanoidspeed/src/Server/HumanoidSpeedBindersServer.lua b/src/humanoidspeed/src/Server/HumanoidSpeedBindersServer.lua index 0e4ad9279c..1674f47d29 100644 --- a/src/humanoidspeed/src/Server/HumanoidSpeedBindersServer.lua +++ b/src/humanoidspeed/src/Server/HumanoidSpeedBindersServer.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Holds binders @class HumanoidSpeedBindersServer diff --git a/src/ik/src/Shared/Interfaces/IKRigInterface.lua b/src/ik/src/Shared/Interfaces/IKRigInterface.lua index b1cb01fe6f..6c25492eb4 100644 --- a/src/ik/src/Shared/Interfaces/IKRigInterface.lua +++ b/src/ik/src/Shared/Interfaces/IKRigInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class IKRigInterface ]=] diff --git a/src/ik/src/Shared/Rig/IKRigUtils.lua b/src/ik/src/Shared/Rig/IKRigUtils.lua index 6d2a5bbc46..f38c968047 100644 --- a/src/ik/src/Shared/Rig/IKRigUtils.lua +++ b/src/ik/src/Shared/Rig/IKRigUtils.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class IKRigUtils ]=] @@ -22,7 +22,7 @@ function IKRigUtils.getTimeBeforeNextUpdate(distance: number): number return updateRate end -function IKRigUtils.getPlayerIKRig(binder, player: Player) +function IKRigUtils.getPlayerIKRig(binder: any, player: Player): any assert(binder, "Bad binder") local humanoid = CharacterUtils.getPlayerHumanoid(player) diff --git a/src/inputkeymaputils/test/modules/Shared/TestInputKeyMap.lua b/src/inputkeymaputils/test/modules/Shared/TestInputKeyMap.lua index d039f49284..8d304edda4 100644 --- a/src/inputkeymaputils/test/modules/Shared/TestInputKeyMap.lua +++ b/src/inputkeymaputils/test/modules/Shared/TestInputKeyMap.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Test input key map provider @class TestInputKeyMap diff --git a/src/kinematics/src/Shared/KinematicUtils.lua b/src/kinematics/src/Shared/KinematicUtils.lua index 3624fa3c3c..ee0b6983d0 100644 --- a/src/kinematics/src/Shared/KinematicUtils.lua +++ b/src/kinematics/src/Shared/KinematicUtils.lua @@ -1,11 +1,11 @@ ---!nonstrict +--!strict --[=[ @class KinematicUtils ]=] local KinematicUtils = {} -function KinematicUtils.positionVelocity(now, t0, p0, v0, a0) +function KinematicUtils.positionVelocity(now: number, t0: number, p0: number, v0: number, a0: number): (number, number) local dt = now - t0 -- stylua: ignore diff --git a/src/racketingropeconstraint/src/Shared/RacketingRopeConstraintInterface.lua b/src/racketingropeconstraint/src/Shared/RacketingRopeConstraintInterface.lua index cd1b78aca8..f70a040559 100644 --- a/src/racketingropeconstraint/src/Shared/RacketingRopeConstraintInterface.lua +++ b/src/racketingropeconstraint/src/Shared/RacketingRopeConstraintInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RacketingRopeConstraintInterface ]=] diff --git a/src/ragdoll/src/Server/Classes/UnragdollAutomaticallyConstants.lua b/src/ragdoll/src/Server/Classes/UnragdollAutomaticallyConstants.lua index 6b83e2759e..6624692263 100644 --- a/src/ragdoll/src/Server/Classes/UnragdollAutomaticallyConstants.lua +++ b/src/ragdoll/src/Server/Classes/UnragdollAutomaticallyConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class UnragdollAutomaticallyConstants ]=] diff --git a/src/ragdoll/src/Shared/Classes/RagdollHumanoidOnFallConstants.lua b/src/ragdoll/src/Shared/Classes/RagdollHumanoidOnFallConstants.lua index 1412d7e11d..6791a4d745 100644 --- a/src/ragdoll/src/Shared/Classes/RagdollHumanoidOnFallConstants.lua +++ b/src/ragdoll/src/Shared/Classes/RagdollHumanoidOnFallConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Constants for [RagdollHumanoidOnFall]. @class RagdollHumanoidOnFallConstants diff --git a/src/ragdoll/src/Shared/Interfaces/RagdollableInterface.lua b/src/ragdoll/src/Shared/Interfaces/RagdollableInterface.lua index 7f1ad8c875..2594a210fa 100644 --- a/src/ragdoll/src/Shared/Interfaces/RagdollableInterface.lua +++ b/src/ragdoll/src/Shared/Interfaces/RagdollableInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RagdollableInterface ]=] diff --git a/src/ragdoll/src/Shared/Rigging/RagdollMotorData.lua b/src/ragdoll/src/Shared/Rigging/RagdollMotorData.lua index bdbfd3fce6..1182b57bb5 100644 --- a/src/ragdoll/src/Shared/Rigging/RagdollMotorData.lua +++ b/src/ragdoll/src/Shared/Rigging/RagdollMotorData.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RagdollMotorData ]=] diff --git a/src/rogue-humanoid/src/Shared/RogueHumanoidProperties.lua b/src/rogue-humanoid/src/Shared/RogueHumanoidProperties.lua index 670538a2c1..17f1e3ace6 100644 --- a/src/rogue-humanoid/src/Shared/RogueHumanoidProperties.lua +++ b/src/rogue-humanoid/src/Shared/RogueHumanoidProperties.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RogueHumanoidProperties ]=] diff --git a/src/rogue-properties/src/Shared/Array/RoguePropertyArrayConstants.lua b/src/rogue-properties/src/Shared/Array/RoguePropertyArrayConstants.lua index d09a474730..f7eeae4a31 100644 --- a/src/rogue-properties/src/Shared/Array/RoguePropertyArrayConstants.lua +++ b/src/rogue-properties/src/Shared/Array/RoguePropertyArrayConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RoguePropertyArrayConstants ]=] diff --git a/src/rogue-properties/src/Shared/Modifiers/RogueModifierInterface.lua b/src/rogue-properties/src/Shared/Modifiers/RogueModifierInterface.lua index 9dcf648ac6..dd88694787 100644 --- a/src/rogue-properties/src/Shared/Modifiers/RogueModifierInterface.lua +++ b/src/rogue-properties/src/Shared/Modifiers/RogueModifierInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RogueModifierInterface ]=] diff --git a/src/rogue-properties/src/Shared/RoguePropertyBaseValueTypeUtils.lua b/src/rogue-properties/src/Shared/RoguePropertyBaseValueTypeUtils.lua index 2a2f5793c6..e883488d65 100644 --- a/src/rogue-properties/src/Shared/RoguePropertyBaseValueTypeUtils.lua +++ b/src/rogue-properties/src/Shared/RoguePropertyBaseValueTypeUtils.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RoguePropertyBaseValueTypeUtils ]=] @@ -9,7 +9,7 @@ local RoguePropertyBaseValueTypes = require("RoguePropertyBaseValueTypes") local RoguePropertyBaseValueTypeUtils = {} -function RoguePropertyBaseValueTypeUtils.isRoguePropertyBaseValueType(value) +function RoguePropertyBaseValueTypeUtils.isRoguePropertyBaseValueType(value: any): boolean return value == RoguePropertyBaseValueTypes.INSTANCE or value == RoguePropertyBaseValueTypes.ANY end diff --git a/src/rogue-properties/src/Shared/RoguePropertyConstants.lua b/src/rogue-properties/src/Shared/RoguePropertyConstants.lua index 1f90392445..616f083207 100644 --- a/src/rogue-properties/src/Shared/RoguePropertyConstants.lua +++ b/src/rogue-properties/src/Shared/RoguePropertyConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class RoguePropertyConstants ]=] diff --git a/src/settings-inputkeymap/src/Shared/InputKeyMapSettingConstants.lua b/src/settings-inputkeymap/src/Shared/InputKeyMapSettingConstants.lua index 9c19d4f85b..d8c44ca9ec 100644 --- a/src/settings-inputkeymap/src/Shared/InputKeyMapSettingConstants.lua +++ b/src/settings-inputkeymap/src/Shared/InputKeyMapSettingConstants.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class InputKeyMapSettingConstants ]=] diff --git a/src/settings/src/Shared/Interface/PlayerSettingsInterface.lua b/src/settings/src/Shared/Interface/PlayerSettingsInterface.lua index 846a431c44..12f7f7e406 100644 --- a/src/settings/src/Shared/Interface/PlayerSettingsInterface.lua +++ b/src/settings/src/Shared/Interface/PlayerSettingsInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class PlayerSettingsInterface ]=] diff --git a/src/snackbar/src/Client/SnackbarScreenGuiProvider.lua b/src/snackbar/src/Client/SnackbarScreenGuiProvider.lua index c3c4e8c6cb..77abda0944 100644 --- a/src/snackbar/src/Client/SnackbarScreenGuiProvider.lua +++ b/src/snackbar/src/Client/SnackbarScreenGuiProvider.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ @class SnackbarScreenGuiProvider ]=] diff --git a/src/softshutdown/src/Shared/SoftShutdownTranslator.lua b/src/softshutdown/src/Shared/SoftShutdownTranslator.lua index 54103221ed..32ab3a08a7 100644 --- a/src/softshutdown/src/Shared/SoftShutdownTranslator.lua +++ b/src/softshutdown/src/Shared/SoftShutdownTranslator.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[[ @class SoftShutdownTranslator ]] diff --git a/src/templateprovider/src/Shared/TaggedTemplateProvider.lua b/src/templateprovider/src/Shared/TaggedTemplateProvider.lua index d4f0c0f338..8c71e8390b 100644 --- a/src/templateprovider/src/Shared/TaggedTemplateProvider.lua +++ b/src/templateprovider/src/Shared/TaggedTemplateProvider.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[=[ Like a template provider, but it also reparents and retrieves tagged objects diff --git a/src/tie/test/modules/Server/Action/ActionInterface.lua b/src/tie/test/modules/Server/Action/ActionInterface.lua index ca65a3dcb9..a4378d258b 100644 --- a/src/tie/test/modules/Server/Action/ActionInterface.lua +++ b/src/tie/test/modules/Server/Action/ActionInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[[ @class ActionInterface ]] diff --git a/src/tie/test/modules/Server/OpenableInterface.lua b/src/tie/test/modules/Server/OpenableInterface.lua index 99ce496940..7298424496 100644 --- a/src/tie/test/modules/Server/OpenableInterface.lua +++ b/src/tie/test/modules/Server/OpenableInterface.lua @@ -1,4 +1,4 @@ ---!nonstrict +--!strict --[[ @class OpenableInterface ]]