Skip to content

Commit

Permalink
feat(types): re-expose withDirectives as public type
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 2, 2020
1 parent b570287 commit 583ba0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/runtime-core/src/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export type DirectiveArguments = Array<

/**
* Adds directives to a VNode.
* @internal
*/
export function withDirectives<T extends VNode>(
vnode: T,
Expand Down
3 changes: 2 additions & 1 deletion packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 583ba0c

Please sign in to comment.