From: Tycho Date: Tue, 13 Aug 2024 14:02:57 +0000 (+0800) Subject: chore: add explicit type annotation to `initDirectivesForSSR` (#11596) X-Git-Tag: v3.5.0-beta.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f882d5bb6842a1631840c9dfeeeedec189cf6a;p=thirdparty%2Fvuejs%2Fcore.git chore: add explicit type annotation to `initDirectivesForSSR` (#11596) --- diff --git a/packages/runtime-dom/src/index.ts b/packages/runtime-dom/src/index.ts index 95f27353a7..344cbf3758 100644 --- a/packages/runtime-dom/src/index.ts +++ b/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