From: Evan You Date: Sat, 2 May 2020 14:19:40 +0000 (-0400) Subject: feat(types): re-expose `withDirectives` as public type X-Git-Tag: v3.0.0-beta.7~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=583ba0c172de7a2fd0d2dc93ad7e4f40c53ba7ac;p=thirdparty%2Fvuejs%2Fcore.git feat(types): re-expose `withDirectives` as public type --- diff --git a/packages/runtime-core/src/directives.ts b/packages/runtime-core/src/directives.ts index d4d378345f..8626396efe 100644 --- a/packages/runtime-core/src/directives.ts +++ b/packages/runtime-core/src/directives.ts @@ -82,7 +82,6 @@ export type DirectiveArguments = Array< /** * Adds directives to a VNode. - * @internal */ export function withDirectives( vnode: T, diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 96822e8458..86e9409053 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -63,6 +63,8 @@ export { BaseTransition, BaseTransitionProps } from './components/BaseTransition' +// For using custom directives +export { withDirectives } from './directives' // SFC CSS Modules export { useCSSModule } from './helpers/useCssModule' // SSR context @@ -202,7 +204,6 @@ export { HMRRuntime } from './hmr' // For compiler generated code // should sync with '@vue/compiler-core/src/runtimeConstants.ts' export { withCtx } from './helpers/withRenderContext' -export { withDirectives } from './directives' export { resolveComponent, resolveDirective,