瀏覽代碼

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
  * @internal
  */
  */
-export const initDirectivesForSSR = __SSR__
+export const initDirectivesForSSR: () => void = __SSR__
   ? () => {
   ? () => {
       if (!ssrDirectiveInitialized) {
       if (!ssrDirectiveInitialized) {
         ssrDirectiveInitialized = true
         ssrDirectiveInitialized = true