wevu 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +20 -4
- package/dist/vue-types.d.mts +1320 -0
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { t as WeappIntrinsicElements } from "./weappIntrinsicElements-zTAqU5H3.mjs";
|
|
2
|
-
import { Ref as Ref$1, ShallowRef as ShallowRef$1 } from "
|
|
3
|
-
import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "vue";
|
|
2
|
+
import { Ref as Ref$1, ShallowRef as ShallowRef$1 } from "./vue-types";
|
|
3
|
+
import { AllowedComponentProps as AllowedComponentProps$1, ComponentCustomProps as ComponentCustomProps$1, ComponentOptionsMixin as ComponentOptionsMixin$1, ComputedOptions, DefineComponent as DefineComponent$1, EmitsOptions as EmitsOptions$1, MethodOptions, ObjectDirective as ObjectDirective$1, PublicProps as PublicProps$1, ShallowUnwrapRef as ShallowUnwrapRef$1, SlotsType, VNode as VNode$1, VNodeProps as VNodeProps$1 } from "./vue-types";
|
|
4
4
|
|
|
5
|
+
//#region src/vue-types.d.ts
|
|
6
|
+
type Ref$2<T$1 = any, S = T$1> = Ref$1<T$1, S>;
|
|
7
|
+
type ShallowRef$2<T$1 = any, S = T$1> = ShallowRef$1<T$1, S>;
|
|
8
|
+
type AllowedComponentProps = AllowedComponentProps$1;
|
|
9
|
+
type ComponentCustomProps = ComponentCustomProps$1;
|
|
10
|
+
type ComponentOptionsMixin = ComponentOptionsMixin$1;
|
|
11
|
+
type DefineComponent<PropsOrPropOptions = Record<string, any>, RawBindings = Record<string, any>, D = Record<string, any>, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin$1 = ComponentOptionsMixin$1, Extends extends ComponentOptionsMixin$1 = ComponentOptionsMixin$1, E extends EmitsOptions$1 = EmitsOptions$1, EE extends string = string, PP = PublicProps$1, Props = any, Defaults = any, S extends SlotsType = SlotsType> = DefineComponent$1<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults, S>;
|
|
12
|
+
type ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective$1<HostElement, Value, Modifiers, Arg>;
|
|
13
|
+
type PublicProps = PublicProps$1;
|
|
14
|
+
type ShallowUnwrapRef<T$1> = ShallowUnwrapRef$1<T$1>;
|
|
15
|
+
type VNode<HostNode = any, HostElement = any, ExtraProps = Record<string, any>> = VNode$1<HostNode, HostElement, ExtraProps>;
|
|
16
|
+
type VNodeProps = VNodeProps$1;
|
|
17
|
+
//#endregion
|
|
5
18
|
//#region src/reactivity/ref.d.ts
|
|
6
|
-
type Ref<T$1 = any, S = T$1> = Ref$
|
|
7
|
-
type ShallowRef<T$1 = any> = ShallowRef$
|
|
19
|
+
type Ref<T$1 = any, S = T$1> = Ref$2<T$1, S>;
|
|
20
|
+
type ShallowRef<T$1 = any> = ShallowRef$2<T$1>;
|
|
8
21
|
declare function isRef(value: unknown): value is Ref<any>;
|
|
9
22
|
declare function ref<T$1>(value: T$1): Ref<T$1>;
|
|
10
23
|
declare function unref<T$1>(value: T$1 | Ref<T$1>): T$1;
|
|
@@ -765,6 +778,9 @@ type SetupBindings<S> = Exclude<S, void> extends never ? Record<string, never> :
|
|
|
765
778
|
* })
|
|
766
779
|
* ```
|
|
767
780
|
*/
|
|
781
|
+
declare function defineComponent<TypeProps, P$1 extends ComponentPropsOptions = ComponentPropsOptions, D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions, S extends Record<string, any> | void = Record<string, any> | void>(options: {
|
|
782
|
+
__typeProps: TypeProps;
|
|
783
|
+
} & DefineComponentOptions<P$1, D, C, M, S>): DefineComponent<TypeProps, SetupBindings<S>, D, C, M> & ComponentDefinition<D, C, M>;
|
|
768
784
|
declare function defineComponent<P$1 extends ComponentPropsOptions = ComponentPropsOptions, D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions, S extends Record<string, any> | void = Record<string, any> | void>(options: DefineComponentOptions<P$1, D, C, M, S>): DefineComponent<P$1, SetupBindings<S>, D, C, M> & ComponentDefinition<D, C, M>;
|
|
769
785
|
/**
|
|
770
786
|
* 从 Vue SFC 选项创建 wevu 组件,供 weapp-vite 编译产物直接调用的兼容入口。
|