@maxax/types 1.0.0 → 1.0.2
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.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineEmits, Ref, ComputedRef } from 'vue';
|
|
1
|
+
import { defineEmits, Ref, ComputedRef, ShallowRef, WritableComputedRef } from 'vue';
|
|
2
2
|
|
|
3
3
|
type Writable<T> = {
|
|
4
4
|
-readonly [P in keyof T]: T[P];
|
|
@@ -71,6 +71,7 @@ interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
|
71
71
|
}
|
|
72
72
|
type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
|
|
73
73
|
type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
|
|
74
|
+
type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
|
|
74
75
|
|
|
75
76
|
interface FuseOptions {
|
|
76
77
|
keys?: string[];
|
|
@@ -85,4 +86,4 @@ interface TreeData {
|
|
|
85
86
|
[key: string]: any;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
export type { Arrayable, Awaitable, ComponentElRef, ComponentRef, DeepPartial, DownloadByUrlOptions, DynamicProps, ElRef, EmitType, Fn, FuseOptions, Indexable, IntervalHandle, KeyValueType, LabelValueOption, LabelValueOptions, MaybeArray, Mutable, NonNull, Nullable, OpenWindowOptions, PromiseFn, ReadonlyRecordable, Recordable, RefType, RenderOpts, ReturnEmitType, SelectValue, TargetContext, TimeoutHandle, TreeData, ValueAtom, Writable };
|
|
89
|
+
export type { Arrayable, Awaitable, ComponentElRef, ComponentRef, DeepPartial, DownloadByUrlOptions, DynamicProps, ElRef, EmitType, Fn, FuseOptions, Indexable, IntervalHandle, KeyValueType, LabelValueOption, LabelValueOptions, MaybeArray, MaybeRef, Mutable, NonNull, Nullable, OpenWindowOptions, PromiseFn, ReadonlyRecordable, Recordable, RefType, RenderOpts, ReturnEmitType, SelectValue, TargetContext, TimeoutHandle, TreeData, ValueAtom, Writable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineEmits, Ref, ComputedRef } from 'vue';
|
|
1
|
+
import { defineEmits, Ref, ComputedRef, ShallowRef, WritableComputedRef } from 'vue';
|
|
2
2
|
|
|
3
3
|
type Writable<T> = {
|
|
4
4
|
-readonly [P in keyof T]: T[P];
|
|
@@ -71,6 +71,7 @@ interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
|
71
71
|
}
|
|
72
72
|
type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
|
|
73
73
|
type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
|
|
74
|
+
type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
|
|
74
75
|
|
|
75
76
|
interface FuseOptions {
|
|
76
77
|
keys?: string[];
|
|
@@ -85,4 +86,4 @@ interface TreeData {
|
|
|
85
86
|
[key: string]: any;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
export type { Arrayable, Awaitable, ComponentElRef, ComponentRef, DeepPartial, DownloadByUrlOptions, DynamicProps, ElRef, EmitType, Fn, FuseOptions, Indexable, IntervalHandle, KeyValueType, LabelValueOption, LabelValueOptions, MaybeArray, Mutable, NonNull, Nullable, OpenWindowOptions, PromiseFn, ReadonlyRecordable, Recordable, RefType, RenderOpts, ReturnEmitType, SelectValue, TargetContext, TimeoutHandle, TreeData, ValueAtom, Writable };
|
|
89
|
+
export type { Arrayable, Awaitable, ComponentElRef, ComponentRef, DeepPartial, DownloadByUrlOptions, DynamicProps, ElRef, EmitType, Fn, FuseOptions, Indexable, IntervalHandle, KeyValueType, LabelValueOption, LabelValueOptions, MaybeArray, MaybeRef, Mutable, NonNull, Nullable, OpenWindowOptions, PromiseFn, ReadonlyRecordable, Recordable, RefType, RenderOpts, ReturnEmitType, SelectValue, TargetContext, TimeoutHandle, TreeData, ValueAtom, Writable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxax/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Shared TypeScript helper types for Maxax packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
"vue": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"tsup": "^8.
|
|
33
|
-
"typescript": "
|
|
32
|
+
"tsup": "^8.5.1",
|
|
33
|
+
"typescript": "5.3.3"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
|
+
"bump-version": "maxax bump-version",
|
|
39
40
|
"dev": "tsup --watch",
|
|
40
41
|
"build": "tsup",
|
|
41
42
|
"clean": "rm -rf dist"
|