Skip to content

Commit 583ba0c

Browse files
committed
feat(types): re-expose withDirectives as public type
1 parent b570287 commit 583ba0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime-core/src/directives.ts

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export type DirectiveArguments = Array<
8282

8383
/**
8484
* Adds directives to a VNode.
85-
* @internal
8685
*/
8786
export function withDirectives<T extends VNode>(
8887
vnode: T,

packages/runtime-core/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export {
6363
BaseTransition,
6464
BaseTransitionProps
6565
} from './components/BaseTransition'
66+
// For using custom directives
67+
export { withDirectives } from './directives'
6668
// SFC CSS Modules
6769
export { useCSSModule } from './helpers/useCssModule'
6870
// SSR context
@@ -202,7 +204,6 @@ export { HMRRuntime } from './hmr'
202204
// For compiler generated code
203205
// should sync with '@vue/compiler-core/src/runtimeConstants.ts'
204206
export { withCtx } from './helpers/withRenderContext'
205-
export { withDirectives } from './directives'
206207
export {
207208
resolveComponent,
208209
resolveDirective,

0 commit comments

Comments
 (0)