Browse Source

clean code

Yuki Takei 3 years ago
parent
commit
94264936a8
1 changed files with 1 additions and 1 deletions
  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()