Преглед изворни кода

chore: add explicit type annotation to `initDirectivesForSSR` (#11596)

Tycho пре 1 година
родитељ
комит
d0f882d5bb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/runtime-dom/src/index.ts

+ 1 - 1
packages/runtime-dom/src/index.ts

@@ -283,7 +283,7 @@ let ssrDirectiveInitialized = false
 /**
  * @internal
  */
-export const initDirectivesForSSR = __SSR__
+export const initDirectivesForSSR: () => void = __SSR__
   ? () => {
       if (!ssrDirectiveInitialized) {
         ssrDirectiveInitialized = true