Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import Image from '../../Image/Image';
import createAnimatedComponent from '../createAnimatedComponent';
import * as React from 'react';

export default createAnimatedComponent<
$FlowFixMe,
React.ElementRef<typeof Image>,
>(Image as $FlowFixMe) as AnimatedComponentType<
ImageProps,
React.ElementRef<typeof Image>,
>;
export default createAnimatedComponent<$FlowFixMe>(
Image as $FlowFixMe,
) as AnimatedComponentType<ImageProps, React.ElementRef<typeof Image>>;
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ import Text, {type TextProps} from '../../Text/Text';
import createAnimatedComponent from '../createAnimatedComponent';
import * as React from 'react';

export default createAnimatedComponent<
$FlowFixMe,
React.ElementRef<typeof Text>,
>(Text as $FlowFixMe) as AnimatedComponentType<
TextProps,
React.ElementRef<typeof Text>,
>;
export default createAnimatedComponent<$FlowFixMe>(
Text as $FlowFixMe,
) as AnimatedComponentType<TextProps, React.ElementRef<typeof Text>>;
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ export default class EventEmitter<
'EventEmitter.addListener(...): 2nd argument must be a function.',
);
}
const registrations = allocate<
TEventToArgsMap,
keyof TEventToArgsMap,
TEventToArgsMap[TEvent],
>(this.#registry, eventType);
const registrations = allocate<TEventToArgsMap, keyof TEventToArgsMap>(
this.#registry,
eventType,
);
const registration: Registration<TEventToArgsMap[TEvent]> = {
context,
listener,
Expand Down
Loading