Yuki Takei 3 лет назад
Родитель
Сommit
94264936a8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/presentation/src/components/Presentation.tsx

+ 1 - 1
packages/presentation/src/components/Presentation.tsx

@@ -40,7 +40,7 @@ export const Presentation = (props: PresentationProps): JSX.Element => {
   const { revealOptions } = options;
   const { revealOptions } = options;
 
 
   useEffect(() => {
   useEffect(() => {
-    let deck;
+    let deck: Reveal.Api;
     if (children != null) {
     if (children != null) {
       deck = new Reveal({ ...baseRevealOptions, ...revealOptions });
       deck = new Reveal({ ...baseRevealOptions, ...revealOptions });
       deck.initialize()
       deck.initialize()