forked from fribbels/hsr-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.d.ts
83 lines (77 loc) · 3.28 KB
/
window.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { WorkerPool } from './lib/workerPool'
import { Constants } from './lib/constants'
import { OcrParserKelz3 } from 'lib/ocrParserKelz3.jsx'
import { DataParser } from './lib/dataParser'
import { OptimizerTabController } from './lib/optimizerTabController'
import { DB } from './lib/db'
import { CharacterStats } from './lib/characterStats'
import { Utils } from './lib/utils'
import { Assets } from './lib/assets'
import { RelicAugmenter } from './lib/relicAugmenter'
import { StatCalculator } from './lib/statCalculator'
import { Gradient } from './lib/gradient'
import { SaveState } from './lib/saveState'
import { RelicFilters } from './lib/relicFilters'
import { Renderer } from './lib/renderer'
import { Message } from './lib/message'
import { Hint } from './lib/hint'
import { CharacterConverter } from './lib/characterConverter'
import { RelicScorer } from './lib/relicScorer'
import { CharacterConditionals } from './lib/characterConditionals'
import { LightConeConditionals } from './lib/lightConeConditionals'
import { BufferPacker } from './lib/bufferPacker'
import { RelicRollFixer } from './lib/relicRollFixer'
import { NotificationInstance } from 'antd/es/notification/interface'
import { MessageInstance } from 'antd/es/message/interface'
import { StoreApi, UseBoundStore } from 'zustand'
import { HsrOptimizerStore } from './types/store'
import { Build, Character } from './types/Character'
import { Relic } from './types/Relic'
import { AgGridReact } from 'ag-grid-react'
import { DispatchWithoutAction, RefObject } from 'react'
import { Hero } from './types/calc'
import { FormInstance } from 'antd/es/form/hooks/useForm'
declare global {
interface Window {
notificationApi: NotificationInstance
messageApi: MessageInstance
store: UseBoundStore<StoreApi<HsrOptimizerStore>>
characterGrid: RefObject<AgGridReact<Character>>
relicsGrid: RefObject<AgGridReact<Relic>>
optimizerGrid: RefObject<AgGridReact<Hero>>
setCharacterRows: (characters: Character[]) => void
setRelicRows: (characters: Relic[]) => void
setOptimizerBuild: (build?: Build) => void
setSelectedRelic: (relic: Partial<Relic>) => void
setEditModalOpen: (open: boolean) => void
// TODO see OptimizerForm
onOptimizerFormValuesChange: (...args: unknown[]) => unknown
optimizerForm: FormInstance
forceOptimizerBuildPreviewUpdate: DispatchWithoutAction
forceCharacterTabUpdate: DispatchWithoutAction
refreshRelicsScore: DispatchWithoutAction
WorkerPool: typeof WorkerPool
Constants: typeof Constants
OcrParserKelz3: typeof OcrParserKelz3
DataParser: typeof DataParser
OptimizerTabController: typeof OptimizerTabController
DB: typeof DB
CharacterStats: typeof CharacterStats
Utils: typeof Utils
Assets: typeof Assets
RelicAugmenter: typeof RelicAugmenter
StatCalculator: typeof StatCalculator
Gradient: typeof Gradient
SaveState: typeof SaveState
RelicFilters: typeof RelicFilters
Renderer: typeof Renderer
Message: typeof Message
Hint: typeof Hint
CharacterConverter: typeof CharacterConverter
RelicScorer: typeof RelicScorer
CharacterConditionals: typeof CharacterConditionals
LightConeConditionals: typeof LightConeConditionals
BufferPacker: typeof BufferPacker
RelicRollFixer: typeof RelicRollFixer
}
}