]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat(types): re-expose `withDirectives` as public type
authorEvan You <yyx990803@gmail.com>
Sat, 2 May 2020 14:19:40 +0000 (10:19 -0400)
committerEvan You <yyx990803@gmail.com>
Sat, 2 May 2020 14:19:40 +0000 (10:19 -0400)
packages/runtime-core/src/directives.ts
packages/runtime-core/src/index.ts

index d4d378345f95eeca914b98b37a17e99f512fb854..8626396efe99446e39a367214f1979765e1e87ea 100644 (file)
@@ -82,7 +82,6 @@ export type DirectiveArguments = Array<
 
 /**
  * Adds directives to a VNode.
- * @internal
  */
 export function withDirectives<T extends VNode>(
   vnode: T,
index 96822e84589bbdb260ef0fab8dfd631f4da8c1ee..86e9409053ae5bce3c15cba477936835d47a48a6 100644 (file)
@@ -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,