vue-component-create
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
import { h, VNodeChild, App, Component, ComponentPublicInstance } from 'vue'; | ||
import { h, VNodeChild, ComponentPublicInstance, App, Component } from 'vue'; | ||
@@ -8,2 +8,3 @@ type CreateSlotsData = (createVnode: typeof h) => Record<string, () => VNodeChild>; | ||
}; | ||
type CreateFunction = <P extends Record<string, any> = {}, M extends Record<string, any> = {}>(options: P, slots: CreateSlotsData) => ComponentPublicInstance<P, {}, {}, {}, CreateComponentProperties & M>; | ||
declare function createAPI(app: App, componentCtor: Component & { | ||
@@ -13,2 +14,2 @@ _instance?: ComponentPublicInstance<{}, {}, {}, {}, CreateComponentProperties> | null; | ||
export { CreateComponentProperties, CreateSlotsData, createAPI }; | ||
export { CreateComponentProperties, CreateFunction, CreateSlotsData, createAPI }; |
{ | ||
"name": "vue-component-create", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
8718
222