@effect-app/vue-components 4.0.0-beta.183 → 4.0.0-beta.185
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.
|
@@ -7,19 +7,19 @@ export interface ButtonProps extends /* @vue-ignore */ VBtnProps {
|
|
|
7
7
|
/** Command Button is an easy way to connect commands and have it execute on click, while keeping track of disabled/loading states automatically */
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
export default _default;
|
|
10
|
-
declare const __VLS_export: <I = never>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
10
|
+
declare const __VLS_export: <I = never, RA = unknown, RE = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
11
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
12
12
|
input: NoInfer<I>;
|
|
13
|
-
command: CommandBase<I>;
|
|
13
|
+
command: CommandBase<I, any, RA, RE>;
|
|
14
14
|
empty?: boolean;
|
|
15
15
|
} | {
|
|
16
|
-
command: CommandBase
|
|
16
|
+
command: CommandBase<any, any, RA, RE>;
|
|
17
17
|
input?: undefined;
|
|
18
18
|
empty?: boolean;
|
|
19
19
|
}) & {
|
|
20
20
|
disabled?: ButtonProps["disabled"];
|
|
21
21
|
title?: string;
|
|
22
|
-
mapProgress?: (result: AsyncResult.AsyncResult<
|
|
22
|
+
mapProgress?: (result: AsyncResult.AsyncResult<RA, RE>) => Progress | undefined;
|
|
23
23
|
} & ButtonProps> & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P;
|
|
25
25
|
} ? P : {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.185",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"effect": "^4.0.0-beta.59",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"highlight.js": "^11.11.1",
|
|
58
58
|
"mitt": "^3.0.1",
|
|
59
59
|
"vue3-highlightjs": "^1.0.5",
|
|
60
|
-
"@effect-app/vue": "4.0.0-beta.
|
|
61
|
-
"effect-app": "4.0.0-beta.
|
|
60
|
+
"@effect-app/vue": "4.0.0-beta.185",
|
|
61
|
+
"effect-app": "4.0.0-beta.185"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"check": "vue-tsc",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script
|
|
2
2
|
setup
|
|
3
3
|
lang="ts"
|
|
4
|
-
generic="I = never"
|
|
4
|
+
generic="I = never, RA = unknown, RE = unknown"
|
|
5
5
|
>
|
|
6
6
|
import type { CommandBase, Progress } from "@effect-app/vue"
|
|
7
7
|
import type * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
|
|
@@ -15,11 +15,11 @@ const props = defineProps<
|
|
|
15
15
|
& (
|
|
16
16
|
| {
|
|
17
17
|
input: NoInfer<I>
|
|
18
|
-
command: CommandBase<I>
|
|
18
|
+
command: CommandBase<I, any, RA, RE>
|
|
19
19
|
empty?: boolean
|
|
20
20
|
}
|
|
21
21
|
| {
|
|
22
|
-
command: CommandBase
|
|
22
|
+
command: CommandBase<any, any, RA, RE>
|
|
23
23
|
input?: undefined
|
|
24
24
|
empty?: boolean
|
|
25
25
|
}
|
|
@@ -27,7 +27,7 @@ const props = defineProps<
|
|
|
27
27
|
& {
|
|
28
28
|
disabled?: ButtonProps["disabled"]
|
|
29
29
|
title?: string // why isn't it part of VBtnProps??
|
|
30
|
-
mapProgress?: (result: AsyncResult.AsyncResult<
|
|
30
|
+
mapProgress?: (result: AsyncResult.AsyncResult<RA, RE>) => Progress | undefined
|
|
31
31
|
}
|
|
32
32
|
& ButtonProps
|
|
33
33
|
>()
|