File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/flip/getFlippedElementPositions/getFlippedElementPositionsBeforeUpdate Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { BoundingClientRect , BaseFlippedElementPositions } from '../types'
2
2
import { InProgressAnimations , FlipCallbacks } from '../../../Flipper/types'
3
3
import { IndexableObject } from '../../../utilities/types'
4
+ import { FlipId } from '../../../Flipped/types'
4
5
5
6
export interface DomDataForExitAnimations {
6
7
element : HTMLElement
@@ -33,10 +34,5 @@ export interface GetFlippedElementPositionsBeforeUpdateArgs {
33
34
34
35
export type ParentBCRs = Array < [ HTMLElement , BoundingClientRect ] >
35
36
36
- export interface ChildIdsToParentBCRS extends IndexableObject {
37
- [ flipId : string ] : BoundingClientRect
38
- }
39
-
40
- export interface ChildIdsToParents extends IndexableObject {
41
- [ flipId : string ] : HTMLElement
42
- }
37
+ export type ChildIdsToParentBCRs = Record < FlipId , BoundingClientRect >
38
+ export type ChildIdsToParents = Record < FlipId , HTMLElement >
You can’t perform that action at this time.
0 commit comments