From e912aa15c9299bc5723a6a33a8253a461bab5587 Mon Sep 17 00:00:00 2001 From: Putro <29204244+Pewtro@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:02:36 +0200 Subject: [PATCH] [Chore] Clean up unused exported types --- .../deathknight/shared/lowRankSpells.ts | 4 --- .../classic/druid/shared/lowRankSpells.ts | 4 --- .../marksman/suggestions/lowRankSpellsPet.tsx | 2 +- .../classic/hunter/shared/lowRankSpells.ts | 4 --- .../survival/suggestions/lowRankSpellsPet.tsx | 2 +- src/analysis/classic/mage/arcane/CONFIG.tsx | 4 --- .../arcane/normalizers/ArcaneMissiles.tsx | 7 +----- .../classic/mage/shared/lowRankSpells.ts | 4 --- .../classic/paladin/shared/lowRankSpells.ts | 4 --- .../classic/priest/shared/lowRankSpells.ts | 4 --- .../classic/rogue/shared/lowRankSpells.ts | 4 --- .../modules/checklist/Component.tsx | 2 +- .../modules/checklist/Component.tsx | 2 +- .../classic/shaman/shared/TotemTracker.tsx | 4 +-- .../classic/shaman/shared/lowRankSpells.ts | 4 --- .../classic/warlock/shared/lowRankSpells.ts | 4 --- .../classic/warrior/shared/lowRankSpells.ts | 4 --- .../shared/runeforges/RuneForgeChecker.tsx | 2 +- .../vengeance/guide/HitBasedAnalyzer.ts | 2 +- .../statistics/SoulFragmentsConsume.tsx | 7 +----- .../modules/talents/FieryBrand/index.tsx | 2 +- .../modules/talents/VoidReaver/index.tsx | 2 +- .../druid/feral/modules/core/Snapshots.ts | 2 +- .../druid/restoration/modules/core/Mastery.ts | 6 ++--- .../druid/shared/spells/ConvokeSpirits.tsx | 2 +- .../breahtofeons/BreathOfEonsRotational.tsx | 2 +- .../dragonflight/tier/T30DevaTier4P.tsx | 2 +- .../modules/core/StaggerFabricator.ts | 2 +- .../core/apl/conditions/targetsHealed.tsx | 2 +- .../modules/dragonflight/tier/T31MWTier.tsx | 2 +- .../mistweaver/modules/spells/ManaTea.tsx | 2 +- .../modules/core/AtonementAnalyzer.ts | 2 +- .../discipline/modules/spells/Helper.ts | 2 +- .../rogue/shared/FilteredDamageTracker.ts | 2 +- src/common/SPELLS/Spell.ts | 4 --- src/common/TALENTS/types.ts | 2 +- src/common/WCL_TYPES.ts | 10 ++++---- src/common/regions.ts | 2 +- src/game/DIFFICULTIES.ts | 2 -- src/game/SPECS.ts | 4 +-- src/interface/ActivityIndicator.tsx | 2 +- src/interface/ContributorButton.tsx | 2 -- src/interface/CyclingVideo.tsx | 2 +- src/interface/DelayRender.tsx | 2 +- src/interface/DragScroll.tsx | 2 +- src/interface/guide/components/Apl/index.tsx | 2 +- .../CastReasonBreakdownTableContents.tsx | 4 +-- .../components/DamageTakenPointChart.tsx | 2 +- .../MajorDefensiveAnalyzer.tsx | 2 +- .../guide/components/ProblemList.tsx | 2 +- src/interface/languages.ts | 2 +- src/interface/reducers/combatants.ts | 2 +- src/interface/reducers/internetExplorer.ts | 2 +- src/interface/reducers/language.ts | 2 +- src/interface/reducers/openModals.ts | 2 +- src/interface/reducers/report.ts | 2 +- .../reportCodesIgnoredPreviousPatchWarning.ts | 2 +- .../specsIgnoredNotSupportedWarning.ts | 2 +- src/interface/reducers/tooltips.ts | 2 +- .../report/CombatLogParserContext.tsx | 2 +- src/interface/report/ExpansionContext.tsx | 2 +- .../report/Results/ResultsContext.tsx | 2 +- .../report/hooks/useCharacterProfile.ts | 5 ---- src/interface/useTooltip.tsx | 2 +- src/parser/Config.ts | 7 ++---- .../classic/suggestions/lowRankSpells.tsx | 2 +- src/parser/core/Analyzer.ts | 4 +-- src/parser/core/CombatLogParser.tsx | 12 --------- src/parser/core/DotSnapshots.ts | 2 +- src/parser/core/Events.ts | 25 ++++--------------- src/parser/core/Fight.ts | 4 +-- .../core/MajorCooldowns/MajorCooldown.tsx | 2 +- src/parser/core/ParseResults.tsx | 4 +-- src/parser/core/Pet.ts | 2 +- src/parser/core/PhaseConfig.ts | 16 ++++++------ src/parser/core/Report.ts | 4 +-- .../HealingEfficiencyBreakdown.tsx | 4 +-- src/parser/core/metric.ts | 5 ---- src/parser/retail/armorMitigation.ts | 2 +- .../enchants/StatProcEnchantAnalyzer.tsx | 2 +- .../metrics/apl/conditions/inExecute.tsx | 2 +- .../metrics/apl/conditions/targetsHit.tsx | 2 +- src/parser/shared/metrics/apl/index.ts | 11 ++++---- .../modules/CooldownThroughputTracker.tsx | 2 +- src/parser/shared/modules/HotTracker.ts | 19 +++----------- src/parser/shared/modules/ResourceGraph.tsx | 2 +- src/parser/shared/modules/SpellUsable.ts | 2 +- src/parser/shared/modules/StatTracker.ts | 16 ++++++------ .../earlydotrefreshes/EarlyDotRefreshes.tsx | 6 ++--- .../modules/features/BaseHealerStatValues.tsx | 6 ++--- .../features/Checklist/ChecklistTypes.ts | 5 ---- src/parser/shared/modules/features/STAT.tsx | 2 +- .../shared/modules/helpers/ExecuteHelper.ts | 2 +- .../resourcetracker/ResourceTracker.ts | 8 +++--- src/parser/shared/normalizers/Channeling.ts | 6 ++--- .../MissingDotApplyDebuffPrePull.ts | 2 +- src/parser/ui/BaseChart.tsx | 2 +- src/parser/ui/FlushLineChart.tsx | 2 +- src/parser/ui/FooterChart.tsx | 2 +- src/parser/ui/StatisticBox.tsx | 2 +- src/parser/ui/UptimeStackBar.tsx | 2 +- 101 files changed, 132 insertions(+), 251 deletions(-) diff --git a/src/analysis/classic/deathknight/shared/lowRankSpells.ts b/src/analysis/classic/deathknight/shared/lowRankSpells.ts index c879235865a..73f52159ea2 100644 --- a/src/analysis/classic/deathknight/shared/lowRankSpells.ts +++ b/src/analysis/classic/deathknight/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/druid/shared/lowRankSpells.ts b/src/analysis/classic/druid/shared/lowRankSpells.ts index 21ebfcc80dc..359ee8b9b16 100644 --- a/src/analysis/classic/druid/shared/lowRankSpells.ts +++ b/src/analysis/classic/druid/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/hunter/marksman/suggestions/lowRankSpellsPet.tsx b/src/analysis/classic/hunter/marksman/suggestions/lowRankSpellsPet.tsx index edfe5c01b1b..48d5f32c138 100644 --- a/src/analysis/classic/hunter/marksman/suggestions/lowRankSpellsPet.tsx +++ b/src/analysis/classic/hunter/marksman/suggestions/lowRankSpellsPet.tsx @@ -7,7 +7,7 @@ import { AnyEvent } from 'parser/core/Events'; import { Info } from 'parser/core/metric'; import castCount from 'parser/shared/metrics/castCount'; -export interface LowRankSpells { +interface LowRankSpells { [primarySpellId: number]: number[]; } diff --git a/src/analysis/classic/hunter/shared/lowRankSpells.ts b/src/analysis/classic/hunter/shared/lowRankSpells.ts index 30fd6a27685..dd26e5ebe78 100644 --- a/src/analysis/classic/hunter/shared/lowRankSpells.ts +++ b/src/analysis/classic/hunter/shared/lowRankSpells.ts @@ -12,7 +12,3 @@ export default lowRankSpells; export const whitelist = { [SPELLS.EXPLOSIVE_SHOT.id]: [60052], }; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/hunter/survival/suggestions/lowRankSpellsPet.tsx b/src/analysis/classic/hunter/survival/suggestions/lowRankSpellsPet.tsx index edfe5c01b1b..48d5f32c138 100644 --- a/src/analysis/classic/hunter/survival/suggestions/lowRankSpellsPet.tsx +++ b/src/analysis/classic/hunter/survival/suggestions/lowRankSpellsPet.tsx @@ -7,7 +7,7 @@ import { AnyEvent } from 'parser/core/Events'; import { Info } from 'parser/core/metric'; import castCount from 'parser/shared/metrics/castCount'; -export interface LowRankSpells { +interface LowRankSpells { [primarySpellId: number]: number[]; } diff --git a/src/analysis/classic/mage/arcane/CONFIG.tsx b/src/analysis/classic/mage/arcane/CONFIG.tsx index 9e04ac63dbc..82490112583 100644 --- a/src/analysis/classic/mage/arcane/CONFIG.tsx +++ b/src/analysis/classic/mage/arcane/CONFIG.tsx @@ -5,10 +5,6 @@ import type Config from 'parser/Config'; import CHANGELOG from './CHANGELOG'; -export enum Build { - DEFAULT = 'default', -} - const config: Config = { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a large part of the spec or contributed something recently to that spec, they can be added to the contributors list. If someone goes MIA, they may be removed after major changes or during a new expansion. contributors: [jazminite], diff --git a/src/analysis/classic/mage/arcane/normalizers/ArcaneMissiles.tsx b/src/analysis/classic/mage/arcane/normalizers/ArcaneMissiles.tsx index 1a2455123cf..e6c5171ed98 100644 --- a/src/analysis/classic/mage/arcane/normalizers/ArcaneMissiles.tsx +++ b/src/analysis/classic/mage/arcane/normalizers/ArcaneMissiles.tsx @@ -18,12 +18,7 @@ import SPELLS from 'common/SPELLS/classic/mage'; const NEW_ARCANE_MISSILES_TIMEOUT = 5000; const ARCANE_MISSILES_BOLT_COUNT = 5; -export interface ArcaneMissilesLog { - arcaneMissilesCastEvents: CastEvent[]; - arcaneMissilesDamageEvents: DamageEvent[]; -} - -export interface ArcaneMissilesBeginChannelEvent extends BeginChannelEvent { +interface ArcaneMissilesBeginChannelEvent extends BeginChannelEvent { arcaneMissilesCastEvents: CastEvent[]; arcaneMissilesDamageEvents: DamageEvent[]; } diff --git a/src/analysis/classic/mage/shared/lowRankSpells.ts b/src/analysis/classic/mage/shared/lowRankSpells.ts index 647cd318865..8e221d9fefa 100644 --- a/src/analysis/classic/mage/shared/lowRankSpells.ts +++ b/src/analysis/classic/mage/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/paladin/shared/lowRankSpells.ts b/src/analysis/classic/paladin/shared/lowRankSpells.ts index 848beafd0b2..373f697747c 100644 --- a/src/analysis/classic/paladin/shared/lowRankSpells.ts +++ b/src/analysis/classic/paladin/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/priest/shared/lowRankSpells.ts b/src/analysis/classic/priest/shared/lowRankSpells.ts index 462a1d26d05..3deae4897d7 100644 --- a/src/analysis/classic/priest/shared/lowRankSpells.ts +++ b/src/analysis/classic/priest/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/rogue/shared/lowRankSpells.ts b/src/analysis/classic/rogue/shared/lowRankSpells.ts index de9da58a549..46d526eff78 100644 --- a/src/analysis/classic/rogue/shared/lowRankSpells.ts +++ b/src/analysis/classic/rogue/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/shaman/enhancement/modules/checklist/Component.tsx b/src/analysis/classic/shaman/enhancement/modules/checklist/Component.tsx index 590ea40a79e..c4599f48ad1 100644 --- a/src/analysis/classic/shaman/enhancement/modules/checklist/Component.tsx +++ b/src/analysis/classic/shaman/enhancement/modules/checklist/Component.tsx @@ -13,7 +13,7 @@ import SPELLS from 'common/SPELLS/classic/shaman'; import { TotemElements } from 'analysis/classic/shaman/shared/totems/totemConstants'; import { TotemTracker } from 'analysis/classic/shaman/shared'; -export interface ChecklistProps extends BaseChecklistProps { +interface ChecklistProps extends BaseChecklistProps { totemTracker: TotemTracker; } diff --git a/src/analysis/classic/shaman/restoration/modules/checklist/Component.tsx b/src/analysis/classic/shaman/restoration/modules/checklist/Component.tsx index a7df4634d64..d4c4edfcd2c 100644 --- a/src/analysis/classic/shaman/restoration/modules/checklist/Component.tsx +++ b/src/analysis/classic/shaman/restoration/modules/checklist/Component.tsx @@ -15,7 +15,7 @@ import SPELLS from 'common/SPELLS/classic'; import { TotemElements } from 'analysis/classic/shaman/shared/totems/totemConstants'; import { TotemTracker } from 'analysis/classic/shaman/shared'; -export interface ChecklistProps extends BaseChecklistProps { +interface ChecklistProps extends BaseChecklistProps { totemTracker: TotemTracker; } diff --git a/src/analysis/classic/shaman/shared/TotemTracker.tsx b/src/analysis/classic/shaman/shared/TotemTracker.tsx index 9b1292d3831..4829ce34a29 100644 --- a/src/analysis/classic/shaman/shared/TotemTracker.tsx +++ b/src/analysis/classic/shaman/shared/TotemTracker.tsx @@ -12,14 +12,14 @@ import { TOTEMS_BY_ELEMENT, } from './totems/totemConstants'; -export interface TotemEventTracker { +interface TotemEventTracker { [TotemElements.Fire]: TotemEvent[]; [TotemElements.Water]: TotemEvent[]; [TotemElements.Earth]: TotemEvent[]; [TotemElements.Air]: TotemEvent[]; } -export interface TotemEvent { +interface TotemEvent { totemSpellId: number; totemName: string; // This is just to make debugging easier summonedAt: number; diff --git a/src/analysis/classic/shaman/shared/lowRankSpells.ts b/src/analysis/classic/shaman/shared/lowRankSpells.ts index f6ced7c03fa..b4cdb54c874 100644 --- a/src/analysis/classic/shaman/shared/lowRankSpells.ts +++ b/src/analysis/classic/shaman/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/warlock/shared/lowRankSpells.ts b/src/analysis/classic/warlock/shared/lowRankSpells.ts index 07974117196..425bf84ded3 100644 --- a/src/analysis/classic/warlock/shared/lowRankSpells.ts +++ b/src/analysis/classic/warlock/shared/lowRankSpells.ts @@ -12,7 +12,3 @@ export default lowRankSpells; export const whitelist = { [SPELLS.LIFE_TAP.id]: [1454], }; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/classic/warrior/shared/lowRankSpells.ts b/src/analysis/classic/warrior/shared/lowRankSpells.ts index 4710a001d0c..680ffe73c34 100644 --- a/src/analysis/classic/warrior/shared/lowRankSpells.ts +++ b/src/analysis/classic/warrior/shared/lowRankSpells.ts @@ -8,7 +8,3 @@ const lowRankSpells = Object.entries(SPELLS).reduce((result, [str, obj]) => { }, {}); export default lowRankSpells; - -export interface LowRankSpells { - [primarySpellId: number]: number[]; -} diff --git a/src/analysis/retail/deathknight/shared/runeforges/RuneForgeChecker.tsx b/src/analysis/retail/deathknight/shared/runeforges/RuneForgeChecker.tsx index 2a02163ea06..d880591d343 100644 --- a/src/analysis/retail/deathknight/shared/runeforges/RuneForgeChecker.tsx +++ b/src/analysis/retail/deathknight/shared/runeforges/RuneForgeChecker.tsx @@ -5,7 +5,7 @@ import SUGGESTION_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE'; import { BoolThreshold, ThresholdStyle, When } from 'parser/core/ParseResults'; import * as React from 'react'; -export interface RuneForgeCheckItem { +interface RuneForgeCheckItem { forge: Enchant; importance: SUGGESTION_IMPORTANCE; suggestion: React.ReactNode; diff --git a/src/analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer.ts b/src/analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer.ts index f9f917cbbbc..8173baa8dc4 100644 --- a/src/analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer.ts +++ b/src/analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer.ts @@ -2,7 +2,7 @@ import Analyzer from 'parser/core/Analyzer'; import { Uptime } from 'parser/ui/UptimeBar'; import { DamageEvent } from 'parser/core/Events'; -export type TrackedHit = { +type TrackedHit = { mitigated: boolean; event: DamageEvent; }; diff --git a/src/analysis/retail/demonhunter/vengeance/modules/statistics/SoulFragmentsConsume.tsx b/src/analysis/retail/demonhunter/vengeance/modules/statistics/SoulFragmentsConsume.tsx index 2b69e59a1f1..23ec14a5dcf 100644 --- a/src/analysis/retail/demonhunter/vengeance/modules/statistics/SoulFragmentsConsume.tsx +++ b/src/analysis/retail/demonhunter/vengeance/modules/statistics/SoulFragmentsConsume.tsx @@ -1,7 +1,7 @@ import SPELLS from 'common/SPELLS/demonhunter'; import { TALENTS_DEMON_HUNTER } from 'common/TALENTS/demonhunter'; import Analyzer, { Options, SELECTED_PLAYER } from 'parser/core/Analyzer'; -import Events, { CastEvent, ChangeBuffStackEvent, Event, EventType } from 'parser/core/Events'; +import Events, { CastEvent, ChangeBuffStackEvent, EventType } from 'parser/core/Events'; import EventEmitter from 'parser/core/modules/EventEmitter'; import BoringSpellValueText from 'parser/ui/BoringSpellValueText'; import Statistic from 'parser/ui/Statistic'; @@ -11,11 +11,6 @@ import SoulFragmentsTracker, { MAX_SOUL_FRAGMENTS } from '../features/SoulFragme const REMOVE_STACK_BUFFER = 100; -export interface ConsumeSoulFragmentsEvent extends Event { - spellId: number; - numberofSoulFragmentsConsumed: number; -} - class SoulFragmentsConsume extends Analyzer { static dependencies = { soulFragmentsTracker: SoulFragmentsTracker, diff --git a/src/analysis/retail/demonhunter/vengeance/modules/talents/FieryBrand/index.tsx b/src/analysis/retail/demonhunter/vengeance/modules/talents/FieryBrand/index.tsx index 0cc67bd85b7..a613facb65d 100644 --- a/src/analysis/retail/demonhunter/vengeance/modules/talents/FieryBrand/index.tsx +++ b/src/analysis/retail/demonhunter/vengeance/modules/talents/FieryBrand/index.tsx @@ -10,7 +10,7 @@ import { shouldIgnore } from 'parser/shared/modules/hit-tracking/utilities'; import { TALENTS_DEMON_HUNTER } from 'common/TALENTS/demonhunter'; import HitBasedAnalyzer from 'analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer'; -export type TrackedHit = { +type TrackedHit = { mitigated: boolean; event: DamageEvent; }; diff --git a/src/analysis/retail/demonhunter/vengeance/modules/talents/VoidReaver/index.tsx b/src/analysis/retail/demonhunter/vengeance/modules/talents/VoidReaver/index.tsx index 707163bfcac..f6e9951fbcc 100644 --- a/src/analysis/retail/demonhunter/vengeance/modules/talents/VoidReaver/index.tsx +++ b/src/analysis/retail/demonhunter/vengeance/modules/talents/VoidReaver/index.tsx @@ -10,7 +10,7 @@ import { shouldIgnore } from 'parser/shared/modules/hit-tracking/utilities'; import { TALENTS_DEMON_HUNTER } from 'common/TALENTS/demonhunter'; import HitBasedAnalyzer from 'analysis/retail/demonhunter/vengeance/guide/HitBasedAnalyzer'; -export type TrackedHit = { +type TrackedHit = { mitigated: boolean; event: DamageEvent; }; diff --git a/src/analysis/retail/druid/feral/modules/core/Snapshots.ts b/src/analysis/retail/druid/feral/modules/core/Snapshots.ts index 293ef7a9308..e68349b8925 100644 --- a/src/analysis/retail/druid/feral/modules/core/Snapshots.ts +++ b/src/analysis/retail/druid/feral/modules/core/Snapshots.ts @@ -308,7 +308,7 @@ export type SnapshotSpec = { }; /** Data object recording a period of time that a DoT was active, and which snapshots it benfitted from */ -export type DotUptime = { +type DotUptime = { /** Timestamp when this debuff was applied or refreshed */ start: number; /** Timestamp when we expect the debuff to expire */ diff --git a/src/analysis/retail/druid/restoration/modules/core/Mastery.ts b/src/analysis/retail/druid/restoration/modules/core/Mastery.ts index 00240367e9c..cbb886d32e8 100644 --- a/src/analysis/retail/druid/restoration/modules/core/Mastery.ts +++ b/src/analysis/retail/druid/restoration/modules/core/Mastery.ts @@ -320,7 +320,7 @@ class Mastery extends Analyzer { /** * A mapping from spell guid to the MasteryAttribution for that spell */ -export type MasteryAttributionsBySpell = { [key: number]: MasterySpellAttribution }; +type MasteryAttributionsBySpell = { [key: number]: MasterySpellAttribution }; /** * A HoT's mastery attribution. @@ -346,7 +346,7 @@ export class MasterySpellAttribution { /** * A mapping from buff guid to the attribution amount for that buff */ -export type MasteryAttributionsByBuff = { [key: number]: MasteryBuffAttribution }; +type MasteryAttributionsByBuff = { [key: number]: MasteryBuffAttribution }; /** * A Buff's mastery attribution. @@ -364,7 +364,7 @@ export class MasteryBuffAttribution { /** * A instance of healing that has been decomposed into parts based on Mastery attribution */ -export interface DecomposedHeal { +interface DecomposedHeal { /** The amount of effective healing that would have been done before being boosted by mastery */ noMastery: number; /** The amount of effective heal added per stack of mastery */ diff --git a/src/analysis/retail/druid/shared/spells/ConvokeSpirits.tsx b/src/analysis/retail/druid/shared/spells/ConvokeSpirits.tsx index 46bb481c0f0..19e1e542d20 100644 --- a/src/analysis/retail/druid/shared/spells/ConvokeSpirits.tsx +++ b/src/analysis/retail/druid/shared/spells/ConvokeSpirits.tsx @@ -451,7 +451,7 @@ export function isConvoking(c: Combatant): boolean { export default ConvokeSpirits; /** A tracker for things that happen in a single Convoke cast */ -export interface ConvokeCast { +interface ConvokeCast { timestamp: number; /** A mapping from spellId to the number of times that spell was cast during the Convoke */ spellIdToCasts: number[]; diff --git a/src/analysis/retail/evoker/augmentation/modules/breahtofeons/BreathOfEonsRotational.tsx b/src/analysis/retail/evoker/augmentation/modules/breahtofeons/BreathOfEonsRotational.tsx index dc4f4bda219..6d006ceb370 100644 --- a/src/analysis/retail/evoker/augmentation/modules/breahtofeons/BreathOfEonsRotational.tsx +++ b/src/analysis/retail/evoker/augmentation/modules/breahtofeons/BreathOfEonsRotational.tsx @@ -38,7 +38,7 @@ export type BreathOfEonsWindows = { end: number; }; -export type BreathWindowPerformance = { +type BreathWindowPerformance = { temporalWoundsCounter: SpellTracker[]; ebonMightDroppedDuringBreath: boolean; ebonMightDroppedDuration: number; diff --git a/src/analysis/retail/evoker/devastation/modules/dragonflight/tier/T30DevaTier4P.tsx b/src/analysis/retail/evoker/devastation/modules/dragonflight/tier/T30DevaTier4P.tsx index 259ac844d2e..a71bc45c419 100644 --- a/src/analysis/retail/evoker/devastation/modules/dragonflight/tier/T30DevaTier4P.tsx +++ b/src/analysis/retail/evoker/devastation/modules/dragonflight/tier/T30DevaTier4P.tsx @@ -28,7 +28,7 @@ const { BLAZING_SHARDS, OBSIDIAN_SHARDS } = SPELLS; const { DRAGONRAGE_TALENT } = TALENTS_EVOKER; -export type BlazeShardCounters = { +type BlazeShardCounters = { castTimeStamp: number; extraDamageProvided: number; }; diff --git a/src/analysis/retail/monk/brewmaster/modules/core/StaggerFabricator.ts b/src/analysis/retail/monk/brewmaster/modules/core/StaggerFabricator.ts index aeb7a1f59bc..a35c42c6a97 100644 --- a/src/analysis/retail/monk/brewmaster/modules/core/StaggerFabricator.ts +++ b/src/analysis/retail/monk/brewmaster/modules/core/StaggerFabricator.ts @@ -33,7 +33,7 @@ type PurifyBreakdown = { [key: number]: number; }; -export type MaxHPEvent = AnyEvent & { maxHitPoints?: number }; +type MaxHPEvent = AnyEvent & { maxHitPoints?: number }; /** * Fabricate events corresponding to stagger pool updates. Each stagger diff --git a/src/analysis/retail/monk/mistweaver/modules/core/apl/conditions/targetsHealed.tsx b/src/analysis/retail/monk/mistweaver/modules/core/apl/conditions/targetsHealed.tsx index 5f0ee3e0c2e..195e5c4dd44 100644 --- a/src/analysis/retail/monk/mistweaver/modules/core/apl/conditions/targetsHealed.tsx +++ b/src/analysis/retail/monk/mistweaver/modules/core/apl/conditions/targetsHealed.tsx @@ -3,7 +3,7 @@ import { EventType, GetRelatedEvents, CastEvent } from 'parser/core/Events'; import { Condition, tenseAlt } from 'parser/shared/metrics/apl'; import { Range, formatRange } from 'parser/shared/metrics/apl/conditions'; -export interface Options { +interface Options { targetType: EventType; targetSpell: Spell; } diff --git a/src/analysis/retail/monk/mistweaver/modules/dragonflight/tier/T31MWTier.tsx b/src/analysis/retail/monk/mistweaver/modules/dragonflight/tier/T31MWTier.tsx index 7d9f71a26ce..794b62343d6 100644 --- a/src/analysis/retail/monk/mistweaver/modules/dragonflight/tier/T31MWTier.tsx +++ b/src/analysis/retail/monk/mistweaver/modules/dragonflight/tier/T31MWTier.tsx @@ -59,7 +59,7 @@ const TWO_PIECE_SPELLS = [ SPELLS.GUST_OF_MISTS_CHIJI, ]; -export interface ChiHarmonySourceMap { +interface ChiHarmonySourceMap { raw: number; amount: number; effective: number; diff --git a/src/analysis/retail/monk/mistweaver/modules/spells/ManaTea.tsx b/src/analysis/retail/monk/mistweaver/modules/spells/ManaTea.tsx index 94498afb445..319160bbbe1 100644 --- a/src/analysis/retail/monk/mistweaver/modules/spells/ManaTea.tsx +++ b/src/analysis/retail/monk/mistweaver/modules/spells/ManaTea.tsx @@ -34,7 +34,7 @@ import { import { MANA_TEA_MAX_STACKS, MANA_TEA_REDUCTION } from '../../constants'; import Haste from 'parser/shared/modules/Haste'; -export interface ManaTeaTracker { +interface ManaTeaTracker { timestamp: number; manaSaved: number; totalVivifyCleaves: number; diff --git a/src/analysis/retail/priest/discipline/modules/core/AtonementAnalyzer.ts b/src/analysis/retail/priest/discipline/modules/core/AtonementAnalyzer.ts index 1eb060cf7f2..585ff892daa 100644 --- a/src/analysis/retail/priest/discipline/modules/core/AtonementAnalyzer.ts +++ b/src/analysis/retail/priest/discipline/modules/core/AtonementAnalyzer.ts @@ -17,7 +17,7 @@ import { ATONEMENT_DAMAGE_SOURCES } from '../../constants'; import AtonementApplicationSource from '../features/AtonementApplicationSource'; import isAtonement from './isAtonement'; -export enum SourceProvenance { +enum SourceProvenance { Atonement = 'Atonement', } diff --git a/src/analysis/retail/priest/discipline/modules/spells/Helper.ts b/src/analysis/retail/priest/discipline/modules/spells/Helper.ts index d0d7b348712..2405c3fb5ce 100644 --- a/src/analysis/retail/priest/discipline/modules/spells/Helper.ts +++ b/src/analysis/retail/priest/discipline/modules/spells/Helper.ts @@ -12,6 +12,6 @@ export function IsPenanceHealEvent(event: HealEvent): event is PenanceHealEvent return (event as PenanceHealEvent).penanceBoltNumber !== undefined; } -export interface PenanceHealEvent extends HealEvent { +interface PenanceHealEvent extends HealEvent { penanceBoltNumber: number; } diff --git a/src/analysis/retail/rogue/shared/FilteredDamageTracker.ts b/src/analysis/retail/rogue/shared/FilteredDamageTracker.ts index cc406a9f216..a198875b97d 100644 --- a/src/analysis/retail/rogue/shared/FilteredDamageTracker.ts +++ b/src/analysis/retail/rogue/shared/FilteredDamageTracker.ts @@ -3,7 +3,7 @@ import { AnyEvent, CastEvent, DamageEvent, HealEvent } from 'parser/core/Events' import DamageTracker from 'parser/shared/modules/AbilityTracker'; import { ReactNode } from 'react'; -export type FilteredDamageObserver = (event: CastEvent) => void; +type FilteredDamageObserver = (event: CastEvent) => void; class FilteredDamageTracker extends DamageTracker { castObservers: FilteredDamageObserver[] = []; diff --git a/src/common/SPELLS/Spell.ts b/src/common/SPELLS/Spell.ts index 959f8ea1e70..692b7e5767a 100644 --- a/src/common/SPELLS/Spell.ts +++ b/src/common/SPELLS/Spell.ts @@ -62,10 +62,6 @@ export interface Enchant extends Spell { effectId: number; } -export interface SpellList { - [key: string | number]: T; -} - export const isSpell = (x: unknown): x is Spell => { const typedObj = x as Spell; return ( diff --git a/src/common/TALENTS/types.ts b/src/common/TALENTS/types.ts index be3be1bcd11..836e7ad6915 100644 --- a/src/common/TALENTS/types.ts +++ b/src/common/TALENTS/types.ts @@ -11,7 +11,7 @@ enum EntryType { Passive = 'passive', } -export interface TalentDefinitionId { +interface TalentDefinitionId { id: number; specId: number; } diff --git a/src/common/WCL_TYPES.ts b/src/common/WCL_TYPES.ts index 09c22e91bc2..6267f224797 100644 --- a/src/common/WCL_TYPES.ts +++ b/src/common/WCL_TYPES.ts @@ -49,7 +49,7 @@ export type WCLRanking = { | { amount: number; bracketData: number } ); -export interface WCLRankingTalent { +interface WCLRankingTalent { name: string; id: number; talentID: number; @@ -89,7 +89,7 @@ export interface WCLDamageDoneTableResponse { // These should be the same data. Im just making it so things are logical // Worst comes to worse we unextend it and just define it. But from my testing // It works perfectly fine -export type WCLDamageDone = WCLDamageTaken; +type WCLDamageDone = WCLDamageTaken; export interface WCLDamageTaken { abilities: Array<{ name: string; total: number; totalReduced: number; type: number }>; @@ -111,7 +111,7 @@ export interface HeroismEvent { startEvent: CastEvent; } -export interface BossSeries { +interface BossSeries { name: string; id: number; guid: number; @@ -135,7 +135,7 @@ export interface WCLThreatBand { endEvent: AnyEvent; } -export interface WCLThreatTarget { +interface WCLThreatTarget { name: string; id: number; guid: number; @@ -145,7 +145,7 @@ export interface WCLThreatTarget { bands: WCLThreatBand[]; } -export interface WCLThreatEntry { +interface WCLThreatEntry { name: string; id: number; guid: number; diff --git a/src/common/regions.ts b/src/common/regions.ts index 349a3d25848..2bd894510f1 100644 --- a/src/common/regions.ts +++ b/src/common/regions.ts @@ -7,7 +7,7 @@ export type ClassicRegion = (typeof CLASSIC_REGIONS)[number]; // WoWAnalyzer/Blizzard API supported regions export const SUPPORTED_REGIONS = ['EU', 'US', 'TW', 'KR'] as const; -export type SupportedRegion = (typeof SUPPORTED_REGIONS)[number]; +type SupportedRegion = (typeof SUPPORTED_REGIONS)[number]; export function isRegion(region: string | undefined): region is Region { // the 'as' below is just to allow the use of .includes diff --git a/src/game/DIFFICULTIES.ts b/src/game/DIFFICULTIES.ts index c7a66797dc0..ff86b5376b7 100644 --- a/src/game/DIFFICULTIES.ts +++ b/src/game/DIFFICULTIES.ts @@ -8,14 +8,12 @@ const DIFFICULTIES = { MYTHIC_RAID: 5, MYTHIC_PLUS_DUNGEON: 10, } as const; -export type Difficulty = keyof typeof DIFFICULTIES; export default DIFFICULTIES; export const CLASSIC_DIFFICULTIES = { NORMAL_RAID: 3, HEROIC_RAID: 4, } as const; -export type ClassicDifficulty = keyof typeof CLASSIC_DIFFICULTIES; export function getLabel(difficulty?: number, hardModeLevel?: number) { const isHardMode = hardModeLevel ?? 0; diff --git a/src/game/SPECS.ts b/src/game/SPECS.ts index c4f58132d5e..5ee428d8cc6 100644 --- a/src/game/SPECS.ts +++ b/src/game/SPECS.ts @@ -24,12 +24,12 @@ interface BaseSpec { wclSpecName: string; } -export interface RetailSpec extends BaseSpec { +interface RetailSpec extends BaseSpec { masterySpellId: number; masteryCoefficient: number; } -export interface ClassicSpec extends BaseSpec { +interface ClassicSpec extends BaseSpec { icon: string; treeIndex?: number; // which tree (0,1,2) is for this spec. used as a fallback to try to do SOMETHING } diff --git a/src/interface/ActivityIndicator.tsx b/src/interface/ActivityIndicator.tsx index e4eb22814e3..248bd49757a 100644 --- a/src/interface/ActivityIndicator.tsx +++ b/src/interface/ActivityIndicator.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import * as React from 'react'; -export interface Props { +interface Props { text: React.ReactNode; } diff --git a/src/interface/ContributorButton.tsx b/src/interface/ContributorButton.tsx index 1113bce5e23..604c723870d 100644 --- a/src/interface/ContributorButton.tsx +++ b/src/interface/ContributorButton.tsx @@ -19,8 +19,6 @@ interface Props { link?: boolean; } -export type ContributorType = Props; - const ContributorButton = ({ nickname, avatar, link = true }: Props) => { const [open, setOpen] = useState(false); diff --git a/src/interface/CyclingVideo.tsx b/src/interface/CyclingVideo.tsx index 38e4dc57b5c..333772e38e2 100644 --- a/src/interface/CyclingVideo.tsx +++ b/src/interface/CyclingVideo.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import * as React from 'react'; -export interface Props extends React.VideoHTMLAttributes { +interface Props extends React.VideoHTMLAttributes { videos: string[]; randomValue?: number; } diff --git a/src/interface/DelayRender.tsx b/src/interface/DelayRender.tsx index 0c2fbf9dcee..633d6bd58a5 100644 --- a/src/interface/DelayRender.tsx +++ b/src/interface/DelayRender.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import * as React from 'react'; -export interface Props { +interface Props { delay: number; children: React.ReactNode; fallback?: React.ReactNode; diff --git a/src/interface/DragScroll.tsx b/src/interface/DragScroll.tsx index b35229712f9..eb7cbdb2558 100644 --- a/src/interface/DragScroll.tsx +++ b/src/interface/DragScroll.tsx @@ -7,7 +7,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import * as React from 'react'; -export interface Props extends React.HTMLAttributes { +interface Props extends React.HTMLAttributes { children: React.ReactNode; style?: Record; } diff --git a/src/interface/guide/components/Apl/index.tsx b/src/interface/guide/components/Apl/index.tsx index aa746d511bb..f70909b18db 100644 --- a/src/interface/guide/components/Apl/index.tsx +++ b/src/interface/guide/components/Apl/index.tsx @@ -113,7 +113,7 @@ const AplLayout = styled.div` } `; -export type AplSectionProps = { +type AplSectionProps = { checker: ReturnType; apl: Apl; summary?: typeof AplSummary; diff --git a/src/interface/guide/components/CastReasonBreakdownTableContents.tsx b/src/interface/guide/components/CastReasonBreakdownTableContents.tsx index 452d60ee349..5b69ec5c9e9 100644 --- a/src/interface/guide/components/CastReasonBreakdownTableContents.tsx +++ b/src/interface/guide/components/CastReasonBreakdownTableContents.tsx @@ -1,11 +1,11 @@ import styled from '@emotion/styled'; import PassFailBar from './PassFailBar'; -export type CastData = { +type CastData = { reason: Reason; }; -export type Props> = { +type Props> = { casts: Data[]; label: (reason: Reason) => React.ReactNode; containerType?: React.ElementType; diff --git a/src/interface/guide/components/DamageTakenPointChart.tsx b/src/interface/guide/components/DamageTakenPointChart.tsx index de8eda3e263..3ba164a93da 100644 --- a/src/interface/guide/components/DamageTakenPointChart.tsx +++ b/src/interface/guide/components/DamageTakenPointChart.tsx @@ -60,7 +60,7 @@ export function damageBreakdown( return bySpell; } -export type DamageTakenPointChartProps = { +type DamageTakenPointChartProps = { hits: TrackedHit[]; tooltip: React.FC<{ hit: TrackedHit }>; }; diff --git a/src/interface/guide/components/MajorDefensives/MajorDefensiveAnalyzer.tsx b/src/interface/guide/components/MajorDefensives/MajorDefensiveAnalyzer.tsx index 3ad838a9565..9e45f447bb2 100644 --- a/src/interface/guide/components/MajorDefensives/MajorDefensiveAnalyzer.tsx +++ b/src/interface/guide/components/MajorDefensives/MajorDefensiveAnalyzer.tsx @@ -29,7 +29,7 @@ import { CooldownDetailsProps } from './AllCooldownUsagesList'; * instead of using this yourself, but if you have a weirdo defensive that doesn't use * buffs/debuffs then you may need this. */ -export type DefensiveTrigger = { +type DefensiveTrigger = { applyTrigger: EventFilter; removeTrigger: EventFilter; trackOn: ResourceActor; diff --git a/src/interface/guide/components/ProblemList.tsx b/src/interface/guide/components/ProblemList.tsx index 755c50d0ce4..76944bcb527 100644 --- a/src/interface/guide/components/ProblemList.tsx +++ b/src/interface/guide/components/ProblemList.tsx @@ -93,7 +93,7 @@ export type ProblemRendererProps = { }; ``` */ -export type ProblemRenderer = (props: ProblemRendererProps) => JSX.Element; +type ProblemRenderer = (props: ProblemRendererProps) => JSX.Element; export function NoProblem({ children }: React.PropsWithChildren) { return ( diff --git a/src/interface/languages.ts b/src/interface/languages.ts index fe08a9d31fc..8b06f03c7b7 100644 --- a/src/interface/languages.ts +++ b/src/interface/languages.ts @@ -1,4 +1,4 @@ -export type Language = { +type Language = { englishName: string; localName: string; region: string | null; diff --git a/src/interface/reducers/combatants.ts b/src/interface/reducers/combatants.ts index efee9606ea5..70b41ec91c2 100644 --- a/src/interface/reducers/combatants.ts +++ b/src/interface/reducers/combatants.ts @@ -1,7 +1,7 @@ import { CombatantInfoEvent } from 'parser/core/Events'; import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export type CombatantsState = CombatantInfoEvent[] | null; +type CombatantsState = CombatantInfoEvent[] | null; const initialState: CombatantsState = null as CombatantsState; diff --git a/src/interface/reducers/internetExplorer.ts b/src/interface/reducers/internetExplorer.ts index 8721b4ede4e..e6316b11c49 100644 --- a/src/interface/reducers/internetExplorer.ts +++ b/src/interface/reducers/internetExplorer.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export type InternetExplorerState = boolean; +type InternetExplorerState = boolean; const initialState: InternetExplorerState = false; diff --git a/src/interface/reducers/language.ts b/src/interface/reducers/language.ts index 52f2aeb192d..038e0b24368 100644 --- a/src/interface/reducers/language.ts +++ b/src/interface/reducers/language.ts @@ -7,7 +7,7 @@ const cookieOptions = { path: '/', maxAge: 86400 * 365, // 1 year }; -export type LanguageState = string; +type LanguageState = string; const initialState: LanguageState = cookies.get(COOKIE_NAME) || 'en'; diff --git a/src/interface/reducers/openModals.ts b/src/interface/reducers/openModals.ts index aa8cc87b9ba..86eece77727 100644 --- a/src/interface/reducers/openModals.ts +++ b/src/interface/reducers/openModals.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export type ModalState = string[]; +type ModalState = string[]; const initialState = [] as ModalState; const openModalsSlice = createSlice({ diff --git a/src/interface/reducers/report.ts b/src/interface/reducers/report.ts index 531a23d3a96..16f1b3f0b01 100644 --- a/src/interface/reducers/report.ts +++ b/src/interface/reducers/report.ts @@ -1,7 +1,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import Report from 'parser/core/Report'; -export type ReportState = Report | null; +type ReportState = Report | null; const initialState = null as ReportState; const reportSlice = createSlice({ diff --git a/src/interface/reducers/reportCodesIgnoredPreviousPatchWarning.ts b/src/interface/reducers/reportCodesIgnoredPreviousPatchWarning.ts index 5058e0bdd84..90a71b4d341 100644 --- a/src/interface/reducers/reportCodesIgnoredPreviousPatchWarning.ts +++ b/src/interface/reducers/reportCodesIgnoredPreviousPatchWarning.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export type ReportCodesIgnoredPreviousPatchWarning = string[]; +type ReportCodesIgnoredPreviousPatchWarning = string[]; const initialState: ReportCodesIgnoredPreviousPatchWarning = [] as ReportCodesIgnoredPreviousPatchWarning; diff --git a/src/interface/reducers/specsIgnoredNotSupportedWarning.ts b/src/interface/reducers/specsIgnoredNotSupportedWarning.ts index ef487b67914..a664ab3a4c8 100644 --- a/src/interface/reducers/specsIgnoredNotSupportedWarning.ts +++ b/src/interface/reducers/specsIgnoredNotSupportedWarning.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export type SpecsIgnoredNotSupportedWarningState = number[]; +type SpecsIgnoredNotSupportedWarningState = number[]; const initialState: SpecsIgnoredNotSupportedWarningState = [] as SpecsIgnoredNotSupportedWarningState; diff --git a/src/interface/reducers/tooltips.ts b/src/interface/reducers/tooltips.ts index 504cf070ca8..16bee0dd55e 100644 --- a/src/interface/reducers/tooltips.ts +++ b/src/interface/reducers/tooltips.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -export interface TooltipsState { +interface TooltipsState { baseUrl: string; } diff --git a/src/interface/report/CombatLogParserContext.tsx b/src/interface/report/CombatLogParserContext.tsx index 10780c4c505..d37da4de44f 100644 --- a/src/interface/report/CombatLogParserContext.tsx +++ b/src/interface/report/CombatLogParserContext.tsx @@ -1,7 +1,7 @@ import CombatLogParser from 'parser/core/CombatLogParser'; import { createContext, ReactNode, useContext } from 'react'; -export interface CombatLogParserContext { +interface CombatLogParserContext { combatLogParser: CombatLogParser; } diff --git a/src/interface/report/ExpansionContext.tsx b/src/interface/report/ExpansionContext.tsx index 145089a7351..f1f5b23139f 100644 --- a/src/interface/report/ExpansionContext.tsx +++ b/src/interface/report/ExpansionContext.tsx @@ -3,7 +3,7 @@ import Expansion from 'game/Expansion'; import { wclGameVersionToExpansion } from 'game/VERSIONS'; import { useReport } from 'interface/report/context/ReportContext'; -export interface ExpansionContext { +interface ExpansionContext { expansion: Expansion; gameVersion: number; } diff --git a/src/interface/report/Results/ResultsContext.tsx b/src/interface/report/Results/ResultsContext.tsx index eb026c288aa..3e7ae495c3d 100644 --- a/src/interface/report/Results/ResultsContext.tsx +++ b/src/interface/report/Results/ResultsContext.tsx @@ -15,7 +15,7 @@ export interface LoadingStatus { parsingState?: EVENT_PARSING_STATE; } -export interface ResultsContextValue { +interface ResultsContextValue { adjustForDowntime: boolean; setAdjustForDowntime: (p: boolean) => void; generateResults: () => void; diff --git a/src/interface/report/hooks/useCharacterProfile.ts b/src/interface/report/hooks/useCharacterProfile.ts index 849f1f4888f..56ba823baca 100644 --- a/src/interface/report/hooks/useCharacterProfile.ts +++ b/src/interface/report/hooks/useCharacterProfile.ts @@ -6,11 +6,6 @@ import { useEffect, useState } from 'react'; const CHINESE_REGION = 'cn'; -export type CharacterProfileStatus = { - characterProfile: CharacterProfile | null; - isLoading?: boolean; -}; - const useCharacterProfile = ({ report, player }: { report: Report; player: PlayerInfo }) => { const [characterProfile, setCharacterProfile] = useState(null); const [isLoading, setIsLoading] = useState(true); diff --git a/src/interface/useTooltip.tsx b/src/interface/useTooltip.tsx index dcc4aa4f357..27871c1d7cd 100644 --- a/src/interface/useTooltip.tsx +++ b/src/interface/useTooltip.tsx @@ -56,7 +56,7 @@ export const spellRelative = (id: number, details: any): string => { } }; -export interface TooltipHelpers { +interface TooltipHelpers { item: (...args: [number, any]) => string; itemSet: (id: number) => string; npc: (id: number) => string; diff --git a/src/parser/Config.ts b/src/parser/Config.ts index 5cd6421604c..651b7b6f59c 100644 --- a/src/parser/Config.ts +++ b/src/parser/Config.ts @@ -26,11 +26,8 @@ export type Builds = { [name: string]: Build }; type VaultPatchCycle = `0.${0 | 2 | 5 | 7}`; type AberrusPatchCycle = `1.${0 | 5 | 7}`; type AmirdrassilPatchCycle = `2.${0 | 5 | 6}`; -export type DragonflightPatchVersion = `10.${ - | VaultPatchCycle - | AberrusPatchCycle - | AmirdrassilPatchCycle}`; -export type WrathPatchVersion = `3.4.0`; +type DragonflightPatchVersion = `10.${VaultPatchCycle | AberrusPatchCycle | AmirdrassilPatchCycle}`; +type WrathPatchVersion = `3.4.0`; interface Config { /** diff --git a/src/parser/classic/suggestions/lowRankSpells.tsx b/src/parser/classic/suggestions/lowRankSpells.tsx index 1d23f72d14b..98d04376449 100644 --- a/src/parser/classic/suggestions/lowRankSpells.tsx +++ b/src/parser/classic/suggestions/lowRankSpells.tsx @@ -7,7 +7,7 @@ import { AnyEvent } from 'parser/core/Events'; import { Info } from 'parser/core/metric'; import castCount from 'parser/shared/metrics/castCount'; -export interface LowRankSpells { +interface LowRankSpells { [primarySpellId: number]: number[]; } diff --git a/src/parser/core/Analyzer.ts b/src/parser/core/Analyzer.ts index 819a2cd70b7..a474da27589 100644 --- a/src/parser/core/Analyzer.ts +++ b/src/parser/core/Analyzer.ts @@ -123,11 +123,11 @@ export function withDependencies = T extends new (options: Options) => infer R ? R : never; -export type InjectedDependencies = { +type InjectedDependencies = { [Key in keyof Deps]: ConstructedDependency; }; -export enum FunctionType { +enum FunctionType { Statistic, Suggestion, } diff --git a/src/parser/core/CombatLogParser.tsx b/src/parser/core/CombatLogParser.tsx index d796692e326..ae5beb5453a 100644 --- a/src/parser/core/CombatLogParser.tsx +++ b/src/parser/core/CombatLogParser.tsx @@ -135,18 +135,6 @@ export interface Suggestion { recommended?: React.ReactNode; } -interface Talent { - id: number; -} -export interface Player { - id: number; - name: string; - talents: Talent[]; - artifact: unknown; - gear: unknown; - auras: unknown; -} - class CombatLogParser { static internalModules: DependenciesDefinition = { fightEndNormalizer: FightEndNormalizer, diff --git a/src/parser/core/DotSnapshots.ts b/src/parser/core/DotSnapshots.ts index 735606f218f..5e844f776b0 100644 --- a/src/parser/core/DotSnapshots.ts +++ b/src/parser/core/DotSnapshots.ts @@ -263,7 +263,7 @@ export type SnapshotSpec = { }; /** Data object recording a period of time that a DoT was active, and which snapshots it benfitted from */ -export type DotUptime = { +type DotUptime = { /** Timestamp when this debuff was applied or refreshed */ start: number; /** Timestamp when we expect the debuff to expire */ diff --git a/src/parser/core/Events.ts b/src/parser/core/Events.ts index 3771f570c0f..efff7017e30 100644 --- a/src/parser/core/Events.ts +++ b/src/parser/core/Events.ts @@ -376,14 +376,14 @@ export interface Event { } // TODO way to specify specific expected event type? -export interface LinkedEvent { +interface LinkedEvent { /** A string specifying the relationship of the linked event. Will be used as a key during lookup */ relation: string; /** The linked event */ event: AnyEvent; } -export interface CastTarget { +interface CastTarget { name: string; id: number; guid: number; @@ -938,7 +938,7 @@ export interface MaxChargesDecreasedEvent extends Event { targetIsFriendly: boolean; } -export interface BasePhaseEvent extends Event { +interface BasePhaseEvent extends Event { phase: PhaseConfig; __fabricated: true; } @@ -1048,7 +1048,7 @@ export interface Item { setItemIDs?: number[]; } -export interface Gem { +interface Gem { id: number; itemLevel: number; icon: string; @@ -1078,21 +1078,6 @@ export interface Soulbind { capstoneTraitID: number; } -export interface SoulbindTrait { - traitID: number; - rank: number; - spellID: number; - icon: string; -} - -export interface Conduit { - traitID: number; - rank: number; - itemLevel?: number; - spellID: number; - icon: string; -} - /** * A talent entry from the log. * diff --git a/src/parser/core/Fight.ts b/src/parser/core/Fight.ts index 2ad31bd71fb..f3b026338ab 100644 --- a/src/parser/core/Fight.ts +++ b/src/parser/core/Fight.ts @@ -1,5 +1,5 @@ // WCL properties -export interface WCLDungeonPull { +interface WCLDungeonPull { id: number; boss: number; start_time: number; @@ -30,7 +30,7 @@ export interface WCLFight { phases?: WCLPhaseTransition[]; } -export interface WCLPhaseTransition { +interface WCLPhaseTransition { /** * The id of the phase. 1-indexed, names are stored in `WCLReport.phases`. */ diff --git a/src/parser/core/MajorCooldowns/MajorCooldown.tsx b/src/parser/core/MajorCooldowns/MajorCooldown.tsx index ca9f4e654db..94acdd7c876 100644 --- a/src/parser/core/MajorCooldowns/MajorCooldown.tsx +++ b/src/parser/core/MajorCooldowns/MajorCooldown.tsx @@ -21,7 +21,7 @@ export interface CooldownTrigger { event: T; } -export interface CooldownOptions { +interface CooldownOptions { spell: Spell; } diff --git a/src/parser/core/ParseResults.tsx b/src/parser/core/ParseResults.tsx index 5947ebdcbfe..93baedd7e6b 100644 --- a/src/parser/core/ParseResults.tsx +++ b/src/parser/core/ParseResults.tsx @@ -301,7 +301,7 @@ export interface Threshold { actual: T; } -export type ThresholdRange = { +type ThresholdRange = { minor?: number; average?: number; major?: number; @@ -336,7 +336,7 @@ type RequireExactlyOne = Pick> & Partial, undefined>>; }[Keys]; -export type ValidThresholds = number | boolean | BoolThreshold | NumberThreshold; +type ValidThresholds = number | boolean | BoolThreshold | NumberThreshold; type GenericSuggestionType = T extends number ? NumberSuggestionAssertion : T extends boolean diff --git a/src/parser/core/Pet.ts b/src/parser/core/Pet.ts index 28fecc3c524..087d0625b6f 100644 --- a/src/parser/core/Pet.ts +++ b/src/parser/core/Pet.ts @@ -2,7 +2,7 @@ import CombatLogParser from './CombatLogParser'; import Entity from './Entity'; import Unit from './Unit'; -export interface PetFight { +interface PetFight { id: number; instances: number; } diff --git a/src/parser/core/PhaseConfig.ts b/src/parser/core/PhaseConfig.ts index d06b2aecef8..7d33eced932 100644 --- a/src/parser/core/PhaseConfig.ts +++ b/src/parser/core/PhaseConfig.ts @@ -1,52 +1,52 @@ import { EventType } from 'parser/core/Events'; -export interface BasePhaseFilter { +interface BasePhaseFilter { type: EventType; eventInstance?: number; } -export interface HealthPhaseFilter extends BasePhaseFilter { +interface HealthPhaseFilter extends BasePhaseFilter { type: EventType.Health; guid: number; health: number; } -export interface ApplyBuffPhaseFilter extends BasePhaseFilter { +interface ApplyBuffPhaseFilter extends BasePhaseFilter { type: EventType.ApplyBuff; ability: { id: number; }; } -export interface RemoveBuffPhaseFilter extends BasePhaseFilter { +interface RemoveBuffPhaseFilter extends BasePhaseFilter { type: EventType.RemoveBuff; ability: { id: number; }; } -export interface ApplyDebuffPhaseFilter extends BasePhaseFilter { +interface ApplyDebuffPhaseFilter extends BasePhaseFilter { type: EventType.ApplyDebuff; ability: { id: number; }; } -export interface CastPhaseFilter extends BasePhaseFilter { +interface CastPhaseFilter extends BasePhaseFilter { type: EventType.Cast; ability: { id: number; }; } -export interface BeginCastPhaseFilter extends BasePhaseFilter { +interface BeginCastPhaseFilter extends BasePhaseFilter { type: EventType.BeginCast; ability: { id: number; }; } -export type PhaseFilter = +type PhaseFilter = | HealthPhaseFilter | ApplyBuffPhaseFilter | RemoveBuffPhaseFilter diff --git a/src/parser/core/Report.ts b/src/parser/core/Report.ts index 0d03cc7768c..b9478162d93 100644 --- a/src/parser/core/Report.ts +++ b/src/parser/core/Report.ts @@ -3,7 +3,7 @@ import { WCLFight } from './Fight'; import { PetInfo } from './Pet'; import { PlayerInfo } from './Player'; -export interface ExportedCharacter { +interface ExportedCharacter { id: number; name: string; server: string; @@ -28,7 +28,7 @@ export interface WCLReport { exportedCharacters: ExportedCharacter[]; } -export interface WCLReportPhases { +interface WCLReportPhases { boss: number; /** * This is present for all games, but only used for FFXIV as far as I know. We can safely ignore it (for now). diff --git a/src/parser/core/healingEfficiency/HealingEfficiencyBreakdown.tsx b/src/parser/core/healingEfficiency/HealingEfficiencyBreakdown.tsx index 785708e80e3..8156ce3ec17 100644 --- a/src/parser/core/healingEfficiency/HealingEfficiencyBreakdown.tsx +++ b/src/parser/core/healingEfficiency/HealingEfficiencyBreakdown.tsx @@ -8,10 +8,10 @@ import Toggle from 'react-toggle'; import HealingEfficiencyTracker, { SpellInfoDetails } from './HealingEfficiencyTracker'; -export interface Props { +interface Props { tracker: T; } -export interface State { +interface State { showHealing: boolean; detailedView: boolean; showCooldowns: boolean; diff --git a/src/parser/core/metric.ts b/src/parser/core/metric.ts index 3edb6e22bbe..13343e555f0 100644 --- a/src/parser/core/metric.ts +++ b/src/parser/core/metric.ts @@ -2,11 +2,6 @@ import Combatant from './Combatant'; import { AnyEvent } from './Events'; import Ability from './modules/Ability'; import { PetInfo } from './Pet'; -import { WCLFight } from 'parser/core/Fight'; - -export interface WCLFightWithDuration extends WCLFight { - duration: number; -} export interface Info { playerId: number; diff --git a/src/parser/retail/armorMitigation.ts b/src/parser/retail/armorMitigation.ts index 59315ece24d..fa561cc8cd8 100644 --- a/src/parser/retail/armorMitigation.ts +++ b/src/parser/retail/armorMitigation.ts @@ -4,7 +4,7 @@ import { DamageEvent } from 'parser/core/Events'; export const maximumArmorMitigation = 0.85; -export enum ArmorCoefficientKey { +enum ArmorCoefficientKey { BASE = 'base', MYTHIC_PLUS = 'm+', RAID_LFR = 'raid_lfr', diff --git a/src/parser/retail/modules/items/dragonflight/enchants/StatProcEnchantAnalyzer.tsx b/src/parser/retail/modules/items/dragonflight/enchants/StatProcEnchantAnalyzer.tsx index 5cffd2ade41..f669bc103c9 100644 --- a/src/parser/retail/modules/items/dragonflight/enchants/StatProcEnchantAnalyzer.tsx +++ b/src/parser/retail/modules/items/dragonflight/enchants/StatProcEnchantAnalyzer.tsx @@ -16,7 +16,7 @@ export const SECONDARY_STAT_WRIT_VALUES = { 3: 1394.51, } as const; -export interface StatProcEnchantRank extends EnchantRank { +interface StatProcEnchantRank extends EnchantRank { amount: number; } diff --git a/src/parser/shared/metrics/apl/conditions/inExecute.tsx b/src/parser/shared/metrics/apl/conditions/inExecute.tsx index 1651b1451cd..12a80a67838 100644 --- a/src/parser/shared/metrics/apl/conditions/inExecute.tsx +++ b/src/parser/shared/metrics/apl/conditions/inExecute.tsx @@ -3,7 +3,7 @@ import { EventType } from 'parser/core/Events'; import { Condition, tenseAlt } from '../index'; -export type TargetHealth = { [targetId: number]: number }; +type TargetHealth = { [targetId: number]: number }; /** * This function expects a health treshold as a decimal ex. 80% = .8 diff --git a/src/parser/shared/metrics/apl/conditions/targetsHit.tsx b/src/parser/shared/metrics/apl/conditions/targetsHit.tsx index 3976ee46894..502e5d00e8e 100644 --- a/src/parser/shared/metrics/apl/conditions/targetsHit.tsx +++ b/src/parser/shared/metrics/apl/conditions/targetsHit.tsx @@ -5,7 +5,7 @@ import { encodeFriendlyEventTargetString } from 'parser/shared/modules/Entities' import { tenseAlt, Condition } from '../index'; import { Range, formatRange } from './index'; -export interface Options { +interface Options { lookahead: number; targetType: EventType; targetSpell: Spell; diff --git a/src/parser/shared/metrics/apl/index.ts b/src/parser/shared/metrics/apl/index.ts index a1678eb6e32..14a88993407 100644 --- a/src/parser/shared/metrics/apl/index.ts +++ b/src/parser/shared/metrics/apl/index.ts @@ -53,7 +53,6 @@ export interface Condition { tooltip?: () => ReactChild | undefined; prefix?: string; } -export type StateFor = T extends (...args: any[]) => Condition ? R : never; /** * What kind of thing is being "targeted" by this APL rule. Usually, this is Spell, which means that you want them to cast a particular spell. @@ -80,7 +79,7 @@ type SpellListTarget = { target: Spell[]; }; -export type AplTarget = SpellTarget | SpellListTarget; +type AplTarget = SpellTarget | SpellListTarget; export type InternalRule = { spell: AplTarget; @@ -88,7 +87,7 @@ export type InternalRule = { description?: React.ReactNode; }; -export interface ConditionalRule { +interface ConditionalRule { spell: Spell | Spell[]; condition: Condition; /** @@ -97,7 +96,7 @@ export interface ConditionalRule { description?: React.ReactNode; } -export interface LabelRule { +interface LabelRule { spell: Spell | Spell[]; /** * Completely overrides the description of the rule. This will prevent the automatic display of conditions! @@ -228,13 +227,13 @@ export interface Violation { type ConditionState = { [key: string]: any }; type AbilityState = { [spellId: number]: UpdateSpellUsableEvent }; -export interface Success { +interface Success { kind: ResultKind.Success; rule: InternalRule; actualCast: AplTriggerEvent; } -export interface CheckState { +interface CheckState { successes: Success[]; violations: Violation[]; conditionState: ConditionState; diff --git a/src/parser/shared/modules/CooldownThroughputTracker.tsx b/src/parser/shared/modules/CooldownThroughputTracker.tsx index 2dcfe524985..082cb4d8576 100644 --- a/src/parser/shared/modules/CooldownThroughputTracker.tsx +++ b/src/parser/shared/modules/CooldownThroughputTracker.tsx @@ -55,7 +55,7 @@ export type CooldownSpell = { durationTooltip?: ReactNode; }; -export type BuffCooldownSpell = CooldownSpell & { +type BuffCooldownSpell = CooldownSpell & { expansion: number; }; diff --git a/src/parser/shared/modules/HotTracker.ts b/src/parser/shared/modules/HotTracker.ts index 5ad75cecc97..2b8d67951a4 100644 --- a/src/parser/shared/modules/HotTracker.ts +++ b/src/parser/shared/modules/HotTracker.ts @@ -901,7 +901,7 @@ abstract class HotTracker extends Analyzer { } /** A mapping from player ID and then spell ID to that player/spell's Tracker */ -export type TrackersByPlayerAndSpell = { [key: number]: TrackersBySpell }; +type TrackersByPlayerAndSpell = { [key: number]: TrackersBySpell }; /** A mapping from spell ID to that spell's Tracker */ export type TrackersBySpell = { [key: number]: Tracker }; @@ -935,14 +935,6 @@ export interface Tracker { lastBounce?: number; } -/** a record of a HoT's tick */ -export interface Tick { - /** the tick's effective healing */ - healing: number; - /** the tick's timestamp */ - timestamp: number; -} - /** a record of healing attributable to an effect */ export interface Attribution { /** the name of the attribution - @@ -965,7 +957,7 @@ export interface Extension { } /** a record of a boost to a HoT (for its full duration) */ -export interface Boost { +interface Boost { /** the amount of the healing increase - ex. 0.15 means a 15% increase */ increase: number; /** the attribution of this boost */ @@ -973,7 +965,7 @@ export interface Boost { } /** A mapping from spell ID to that spell's HotInfo */ -export type HotInfoMap = { [key: number]: HotInfo }; +type HotInfoMap = { [key: number]: HotInfo }; /** Information about a Heal over Time spell specific to tracking */ export interface HotInfo { @@ -998,10 +990,7 @@ export interface HotInfo { } /** A callback to be triggered when a HoT is refreshed */ -export type RefreshCallback = ( - event: RefreshBuffEvent | ApplyBuffStackEvent, - info: RefreshInfo, -) => void; +type RefreshCallback = (event: RefreshBuffEvent | ApplyBuffStackEvent, info: RefreshInfo) => void; /** Info about the refreshed HoT to be passed to the callback */ export interface RefreshInfo { diff --git a/src/parser/shared/modules/ResourceGraph.tsx b/src/parser/shared/modules/ResourceGraph.tsx index aef981d3999..28c7a05547d 100644 --- a/src/parser/shared/modules/ResourceGraph.tsx +++ b/src/parser/shared/modules/ResourceGraph.tsx @@ -228,7 +228,7 @@ abstract class ResourceGraph extends Analyzer { } /** The type used to compile the data for graphing. */ -export type GraphData = { +type GraphData = { /** Timestamp of the data point */ timestamp: number; diff --git a/src/parser/shared/modules/SpellUsable.ts b/src/parser/shared/modules/SpellUsable.ts index d8ba9a7ef64..431110c3d03 100644 --- a/src/parser/shared/modules/SpellUsable.ts +++ b/src/parser/shared/modules/SpellUsable.ts @@ -31,7 +31,7 @@ function spellName(spellId: number) { * When a spell finishes coolding down, the CooldownInfo about it is deleted. * Spells without charges are considered to effectively have one charge. */ -export type CooldownInfo = { +type CooldownInfo = { /** Timestamp this cooldown started overall (not the most recent charge) */ overallStart: number; /** Timestamp the most recent charge started cooling down */ diff --git a/src/parser/shared/modules/StatTracker.ts b/src/parser/shared/modules/StatTracker.ts index 0fc54e4711c..8cfbe93382f 100644 --- a/src/parser/shared/modules/StatTracker.ts +++ b/src/parser/shared/modules/StatTracker.ts @@ -999,7 +999,7 @@ class StatTracker extends Analyzer { /** * TODO better docs for this object once I understand how it works */ -export interface PenaltyThreshold { +interface PenaltyThreshold { base: number; scaled: number; penaltyAboveThis: number; @@ -1026,39 +1026,39 @@ export interface Stats { /** * A player's total stat ratings */ -export type PlayerStats = Stats; +type PlayerStats = Stats; /** * A player's total stat multipliers */ -export type PlayerMultipliers = Stats; +type PlayerMultipliers = Stats; /** * StatBuff values can be represented as a static value * or as a dynamically generated value using the combatant and item * (typically an item buff will have power based on its ilvl) */ -export type BuffVal = number | ((s: Combatant, t: Item | null) => number); +type BuffVal = number | ((s: Combatant, t: Item | null) => number); /** * A buff that boosts player stats. * 'itemId' need only be filled in for an item based buff, when we will need the ID for the BuffVal callback. */ -export type StatBuff = Partial> & { itemId?: number }; +type StatBuff = Partial> & { itemId?: number }; /** * StatBuffs mapped by their guid */ -export type StatBuffsByGuid = { [key: string]: StatBuff }; +type StatBuffsByGuid = { [key: string]: StatBuff }; /** * A buff or effect that multiplies stats (as opposed to adding) */ -export type StatMultiplier = Partial; +type StatMultiplier = Partial; /** * StatMultipliers mapped by their guid */ -export type StatMultipliersByGuid = { [key: string]: StatMultiplier }; +type StatMultipliersByGuid = { [key: string]: StatMultiplier }; export default StatTracker; diff --git a/src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshes.tsx b/src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshes.tsx index 3189306d200..a9612e0455b 100644 --- a/src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshes.tsx +++ b/src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshes.tsx @@ -13,7 +13,7 @@ import { encodeTargetString } from 'parser/shared/modules/Enemies'; const BUFFER_MS = 100; export const PANDEMIC_WINDOW = 0.3; -export interface Dot { +interface Dot { debuffId: number; castId: number; name: string; @@ -239,7 +239,7 @@ class EarlyDotRefreshes extends Analyzer { } } -export type DotsById = { [key: number]: DotsByTarget }; -export type DotsByTarget = { [key: string]: number }; +type DotsById = { [key: number]: DotsByTarget }; +type DotsByTarget = { [key: string]: number }; export default EarlyDotRefreshes; diff --git a/src/parser/shared/modules/features/BaseHealerStatValues.tsx b/src/parser/shared/modules/features/BaseHealerStatValues.tsx index 48bcad4d845..3653eb00742 100644 --- a/src/parser/shared/modules/features/BaseHealerStatValues.tsx +++ b/src/parser/shared/modules/features/BaseHealerStatValues.tsx @@ -675,7 +675,7 @@ export default BaseHealerStatValues; export type HealerStatWeightEvents = HealEvent | AbsorbedEvent | RemoveBuffEvent; -export interface HealerSpellInfo { +interface HealerSpellInfo { int?: boolean; crit?: boolean; hasteHpm?: boolean; @@ -687,11 +687,11 @@ export interface HealerSpellInfo { masteryStack?: boolean; } -export interface ListOfHealerSpellInfo { +interface ListOfHealerSpellInfo { [key: number]: HealerSpellInfo; } -export interface StatMessage { +interface StatMessage { stat: STAT; tooltip: JSX.Element; } diff --git a/src/parser/shared/modules/features/Checklist/ChecklistTypes.ts b/src/parser/shared/modules/features/Checklist/ChecklistTypes.ts index 1645bae2a17..e05df73982b 100644 --- a/src/parser/shared/modules/features/Checklist/ChecklistTypes.ts +++ b/src/parser/shared/modules/features/Checklist/ChecklistTypes.ts @@ -15,11 +15,6 @@ export interface AbilityRequirementProps { name?: string | JSX.Element; } -export interface TalentRequirementProps { - talent: Spell; - name?: string | JSX.Element; -} - export interface DotUptimeProps { spell: Spell; thresholds: RequirementThresholds; diff --git a/src/parser/shared/modules/features/STAT.tsx b/src/parser/shared/modules/features/STAT.tsx index f7fc9b33c54..243b7773283 100644 --- a/src/parser/shared/modules/features/STAT.tsx +++ b/src/parser/shared/modules/features/STAT.tsx @@ -27,7 +27,7 @@ export enum SECONDARY_STAT { VERSATILITY = 'versatility', } -export enum OTHER_STAT { +enum OTHER_STAT { HEALTH = 'health', STAMINA = 'stamina', MANA = 'mana', diff --git a/src/parser/shared/modules/helpers/ExecuteHelper.ts b/src/parser/shared/modules/helpers/ExecuteHelper.ts index fb8f9423360..7b74e2ab497 100644 --- a/src/parser/shared/modules/helpers/ExecuteHelper.ts +++ b/src/parser/shared/modules/helpers/ExecuteHelper.ts @@ -18,7 +18,7 @@ const debug = false; const MS_BUFFER = 500; -export enum ExecuteRangeType { +enum ExecuteRangeType { /** * A range that indicates low (or high, for reverse executes) HP. */ diff --git a/src/parser/shared/modules/resources/resourcetracker/ResourceTracker.ts b/src/parser/shared/modules/resources/resourcetracker/ResourceTracker.ts index 1810c51de45..8bfecf7aab4 100644 --- a/src/parser/shared/modules/resources/resourcetracker/ResourceTracker.ts +++ b/src/parser/shared/modules/resources/resourcetracker/ResourceTracker.ts @@ -41,7 +41,7 @@ const MULTI_UPDATE_BUFFER_MS = 150; const REFUND_HIT_TYPES = [HIT_TYPES.MISS, HIT_TYPES.DODGE, HIT_TYPES.PARRY]; /** Data for a builder ability (one that generates resource) */ -export type BuilderObj = { +type BuilderObj = { /** The total amount of resource generated */ generated: number; /** The total amount of resource wasted (overcapped) */ @@ -51,7 +51,7 @@ export type BuilderObj = { }; /** Data for a spender ability (one that uses resource) */ -export type SpenderObj = { +type SpenderObj = { /** The total cost of resource spent */ spent: number; /** A list of the amount spent by each use of this ability */ @@ -61,7 +61,7 @@ export type SpenderObj = { }; /** An update on the resource state */ -export type ResourceUpdate = { +type ResourceUpdate = { /** What triggered this update (see {@link ResourceUpdateType} */ type: ResourceUpdateType; /** This update's timestamp */ @@ -90,7 +90,7 @@ export type ResourceUpdate = { atCap: boolean; }; -export type ResourceUpdateType = +type ResourceUpdateType = /** Player spent resource, as shown in a cast's classResources */ | 'spend' /** Player drained resource, as shown in a DrainEvent */ diff --git a/src/parser/shared/normalizers/Channeling.ts b/src/parser/shared/normalizers/Channeling.ts index e6da7611d39..0d026b068bd 100644 --- a/src/parser/shared/normalizers/Channeling.ts +++ b/src/parser/shared/normalizers/Channeling.ts @@ -437,7 +437,7 @@ export function nextCastChannelSpec(spellId: number): ChannelSpec { } /** Specification of special handling for a spell */ -export type ChannelSpec = { +type ChannelSpec = { /** The handling function for this spell */ handler: ChannelHandler; /** The guid or guids of the spells to handle */ @@ -448,7 +448,7 @@ export type ChannelSpec = { * A handling function for a channel. Given an applicable event, this function should appropriately * handle the event by updating the channel state as required. Keep in mind that this function will * be called *instead of* the default handling code for any events that trigger it. */ -export type ChannelHandler = ( +type ChannelHandler = ( /** The event to handle */ event: AnyEvent, /** All events in the encounter */ @@ -460,7 +460,7 @@ export type ChannelHandler = ( ) => void; /** A state holder during channel handling, to be updated */ -export type ChannelState = { +type ChannelState = { /** The current 'unresolved' channel. This represents a spell that has been started but isn't yet finished * and we're not sure when or if it will be finished. Depending on follow on events, it could be finished or cancelled. */ diff --git a/src/parser/shared/normalizers/MissingDotApplyDebuffPrePull.ts b/src/parser/shared/normalizers/MissingDotApplyDebuffPrePull.ts index 4c408c0ecdd..904242979c9 100644 --- a/src/parser/shared/normalizers/MissingDotApplyDebuffPrePull.ts +++ b/src/parser/shared/normalizers/MissingDotApplyDebuffPrePull.ts @@ -8,7 +8,7 @@ export interface Dot { debuffId: number; } -export interface DotStatus { +interface DotStatus { debuffId: number; missingApplyDebuff?: boolean; // The first damage event we find of a dot that is missing an apply debuff event. Used to fabricate the apply debuff event. diff --git a/src/parser/ui/BaseChart.tsx b/src/parser/ui/BaseChart.tsx index d3655f7e3cf..aeff06e309d 100644 --- a/src/parser/ui/BaseChart.tsx +++ b/src/parser/ui/BaseChart.tsx @@ -19,7 +19,7 @@ export const defaultConfig = { }, }; -export interface Props { +interface Props { spec: VisualizationSpec; data: any; config?: Config; diff --git a/src/parser/ui/FlushLineChart.tsx b/src/parser/ui/FlushLineChart.tsx index 1411a5e9922..971c153fc51 100644 --- a/src/parser/ui/FlushLineChart.tsx +++ b/src/parser/ui/FlushLineChart.tsx @@ -2,7 +2,7 @@ import { Config } from 'vega-lite'; import FooterChart from './FooterChart'; -export interface Props { +interface Props { data: any[]; config?: Config; x?: string; diff --git a/src/parser/ui/FooterChart.tsx b/src/parser/ui/FooterChart.tsx index c0e4ce851c4..652698de69f 100644 --- a/src/parser/ui/FooterChart.tsx +++ b/src/parser/ui/FooterChart.tsx @@ -8,7 +8,7 @@ export { formatTime }; export type Spec = Omit; -export interface Props { +interface Props { spec: Spec; data: any; config?: Config; diff --git a/src/parser/ui/StatisticBox.tsx b/src/parser/ui/StatisticBox.tsx index f3955122e8a..8e449966e2c 100644 --- a/src/parser/ui/StatisticBox.tsx +++ b/src/parser/ui/StatisticBox.tsx @@ -6,7 +6,7 @@ import './StatisticBox.css'; export { default as STATISTIC_ORDER } from './STATISTIC_ORDER'; -export interface Props { +interface Props { icon?: ReactNode; value: ReactNode; tooltip?: ReactNode; diff --git a/src/parser/ui/UptimeStackBar.tsx b/src/parser/ui/UptimeStackBar.tsx index e0f054feacd..2c144d6f3b8 100644 --- a/src/parser/ui/UptimeStackBar.tsx +++ b/src/parser/ui/UptimeStackBar.tsx @@ -5,7 +5,7 @@ import { Uptime } from 'parser/ui/UptimeBar'; import * as React from 'react'; import { TrackedBuffEvent } from 'parser/core/Entity'; -export type StackUptime = { +type StackUptime = { /** Timestamp in milliseconds of the uptime start */ start: number; /** Timestamp in milliseconds of the uptime end */