fix: more imports

This commit is contained in:
TrèsAbhi committed 2024-09-08 10:11:24 -05:00
1 parent 25cfb7db74
commit 4f24db0956
182 files changed
+456 -452

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import { BlitzStats } from './compositeStats/constants';
* @param expected what all players on average perform like
* @param average what the player in question performs like
*/
export default function calculateWN8(
export function calculateWN8(
expected: BlitzStats,
average: {
damage_dealt: number;
@@ -1,4 +1,4 @@
import calculateWN8 from '../calculateWN8';
import { calculateWN8 } from '../calculateWN8';
import {
BlitzkitStats,
CompositeStats,
+2 -2
View File
@@ -1,9 +1,9 @@
import { SupplementaryStats } from '../../../website/src/core/blitz/getAccountInfo';
import { tankDefinitions, TreeType } from '../blitzkit/tankDefinitions';
import { blitzStarsTankAverages } from '../blitzstars/tankAverages';
import calculateWN8 from './calculateWN8';
import { calculateWN8 } from './calculateWN8';
import { BlitzStats } from './compositeStats';
import sumStats from './sumStats';
import { sumStats } from './sumStats';
export interface StatFilters {
nation?: string;
@@ -40,7 +40,7 @@ export const BKNI_COLORS = {
[BkniPercentile.SuperUnicum]: 'purple',
} as const;
export default function getBkniPercentile(wn8: number) {
export function getBkniPercentile(wn8: number) {
const lastIndex = BKNI_PERCENTILES.findLastIndex(({ min }) => min <= wn8);
return BKNI_PERCENTILES[lastIndex === -1 ? 0 : lastIndex].percentile;
}
@@ -13,7 +13,7 @@ const WN8_PERCENTILES: [number, Percentile][] = [
[2900, Percentile.SuperUnicum],
];
export default function getWN8Percentile(WN8: number) {
export function getWN8Percentile(WN8: number) {
const lastIndex = WN8_PERCENTILES.findLastIndex(
([WN8Listing]) => WN8Listing <= WN8,
);
+1 -1
View File
@@ -1,7 +1,7 @@
import { emptyAllStats } from '..';
import { BlitzStats } from './compositeStats/constants';
export default function sumStats(allStatsCollection: BlitzStats[]) {
export function sumStats(allStatsCollection: BlitzStats[]) {
return allStatsCollection.reduce((accumulated, current) => {
function sum(value: (allStats: BlitzStats) => number) {
return value(accumulated) + value(current);