Skip to content

🎥 Make videos programmatically with React

fix linting

Jonny Burger3d378bf4063c
diff --git a/packages/animated-emoji/src/AnimatedEmoji.tsx b/packages/animated-emoji/src/AnimatedEmoji.tsx
index d684e16cfd..908b9a3d4f 100644
--- a/packages/animated-emoji/src/AnimatedEmoji.tsx
+++ b/packages/animated-emoji/src/AnimatedEmoji.tsx
@@ -1,22 +1,15 @@
-import {
- Loop,
- OffthreadVideo,
- RemotionOffthreadVideoProps,
- useVideoConfig,
-} from 'remotion';
-import {
- CalculateEmojiSrc,
- Scale,
- defaultCalculateEmojiSrc,
-} from './calculate-emoji-src';
+import type {RemotionOffthreadVideoProps} from 'remotion';
+import {Loop, OffthreadVideo, useVideoConfig} from 'remotion';
+import type {CalculateEmojiSrc, Scale} from './calculate-emoji-src';
+import {defaultCalculateEmojiSrc} from './calculate-emoji-src';
import {emojis} from './emoji-data';
import type {EmojiName} from './get-available-emoji';
import {isWebkit} from './is-webkit';
export type AnimatedEmojiProps = Omit<RemotionOffthreadVideoProps, 'src'> & {
- emoji: EmojiName;
- scale?: Scale;
- calculateSrc?: CalculateEmojiSrc;
+ readonly emoji: EmojiName;
+ readonly scale?: Scale;
+ readonly calculateSrc?: CalculateEmojiSrc;
};
export const AnimatedEmoji = ({
diff --git a/packages/animated-emoji/src/calculate-emoji-src.ts b/packages/animated-emoji/src/calculate-emoji-src.ts
index 918ed72401..470c7e177e 100644
--- a/packages/animated-emoji/src/calculate-emoji-src.ts
+++ b/packages/animated-emoji/src/calculate-emoji-src.ts
@@ -1,5 +1,5 @@
import {staticFile} from 'remotion';
-import {EmojiName} from './get-available-emoji';
+import type {EmojiName} from './get-available-emoji';
export type Format = 'hevc' | 'webm';
export type Scale = '0.5' | '1' | '2';