]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor: export all from optional features
authorEvan You <yyx990803@gmail.com>
Tue, 25 Sep 2018 22:00:29 +0000 (18:00 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 25 Sep 2018 22:00:29 +0000 (18:00 -0400)
packages/core/src/componentProxy.ts
packages/core/src/index.ts
packages/core/src/optional/directive.ts

index 7b764395003781809371f9a2bbe7d052f3563f67..8b92fe177a154cb92342f1ed826ff9cb96264495 100644 (file)
@@ -1,4 +1,4 @@
-import { Component, MountedComponent } from './component'
+import { MountedComponent } from './component'
 
 const bindCache = new WeakMap()
 
@@ -77,6 +77,6 @@ const renderProxyHandlers = {
   }
 }
 
-export function createRenderProxy(instance: Component): MountedComponent {
+export function createRenderProxy(instance: any): MountedComponent {
   return new Proxy(instance, renderProxyHandlers) as MountedComponent
 }
index 945bc26840f656e3da95dd1629fc26c8358c9e5f..aee529bd5ff757bef512af966deac59b8210643b 100644 (file)
@@ -15,8 +15,8 @@ export { createComponentInstance } from './componentUtils'
 
 // Optional APIs
 // these are imported on-demand and can be tree-shaken
-export { applyDirective } from './optional/directive'
-export { Provide, Inject } from './optional/context'
+export * from './optional/directive'
+export * from './optional/context'
 
 // flags & types
 export { ComponentClass, FunctionalComponent } from './component'
index 5e225386a632a42ea44322d3aa13f89787e1b2dd..aeab07bb38148bc2055a46d59b8c6e36c45ad496 100644 (file)
@@ -24,7 +24,7 @@ export interface Directive {
   unmounted: DirectiveHook
 }
 
-type DirectiveModifiers = Record<string, boolean>
+export type DirectiveModifiers = Record<string, boolean>
 
 export function applyDirective(
   vnode: VNode,