Browse Source

feat(types): re-expose `withDirectives` as public type

Evan You 6 years ago
parent
commit
583ba0c172
2 changed files with 2 additions and 2 deletions
  1. 0 1
      packages/runtime-core/src/directives.ts
  2. 2 1
      packages/runtime-core/src/index.ts

+ 0 - 1
packages/runtime-core/src/directives.ts

@@ -82,7 +82,6 @@ export type DirectiveArguments = Array<
 
 /**
  * Adds directives to a VNode.
- * @internal
  */
 export function withDirectives<T extends VNode>(
   vnode: T,

+ 2 - 1
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,