vue-fn 0.1.0-rc.5 → 0.3.0-rc
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/domain/agg.d.ts +1 -1
- package/domain/bind.d.ts +1 -1
- package/domain/event.d.ts +4 -4
- package/domain/index.mjs +272 -272
- package/domain/index.mjs.map +1 -1
- package/domain/plugin.d.ts +2 -2
- package/domain-server/agg.d.ts +1 -1
- package/domain-server/bind.d.ts +1 -1
- package/domain-server/event.d.ts +4 -4
- package/domain-server/index.mjs +272 -272
- package/domain-server/index.mjs.map +1 -1
- package/domain-server/plugin.d.ts +2 -2
- package/package.json +1 -1
- package/shared-domain/index.d.ts +1 -1
- package/shared-domain/index.mjs.map +1 -1
- package/timer/index.d.ts +9 -1
- package/timer/index.mjs +42 -27
- package/timer/index.mjs.map +1 -1
package/domain/agg.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComputedRef, type DeepReadonly, type EffectScope } from 'vue';
|
|
2
2
|
import { type DomainBroadcastEvent, type DomainDestroyedEventApi, type DomainEvent, type DomainRequestEvent } from './event';
|
|
3
3
|
type AddDestroyedEventApi<T extends object, K = 'destroyed'> = keyof T extends never ? {
|
|
4
4
|
destroyed: DomainDestroyedEventApi;
|
package/domain/bind.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref, ShallowRef,
|
|
1
|
+
import { type Reactive, type Ref, type ShallowRef, type ShallowReactive, type WatchCallback, type WatchOptions } from 'vue';
|
|
2
2
|
type DomainAggState = DomainAggRefState | DomainAggReactiveState;
|
|
3
3
|
type DomainAggRefState = Readonly<Ref<any>> | Readonly<ShallowRef<any>>;
|
|
4
4
|
type DomainAggReactiveState = Readonly<Reactive<object>> | Readonly<ShallowReactive<object>>;
|
package/domain/event.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeepReadonly, UnwrapNestedRefs } from 'vue';
|
|
1
|
+
import type { DeepReadonly, UnwrapNestedRefs } from 'vue';
|
|
2
2
|
export type DomainRequestEventOptions<DATA, ON_REPLY extends (data: any) => void> = {
|
|
3
3
|
dataType?: DATA;
|
|
4
4
|
onReply: ON_REPLY;
|
|
@@ -36,8 +36,8 @@ export type DomainBroadcastEventListener<DATA> = (param: {
|
|
|
36
36
|
}) => void;
|
|
37
37
|
export type DomainDestroyedEventApi = DomainBroadcastEvent<{}>['api'];
|
|
38
38
|
export type DomainEvent<DATA, REPLY_DATA> = DomainRequestEvent<DATA, REPLY_DATA> | DomainBroadcastEvent<DATA>;
|
|
39
|
-
export declare function createRequestEvent<
|
|
40
|
-
options: <ON_REPLY extends (replyData:
|
|
39
|
+
export declare function createRequestEvent<EVT_DATA extends object = never, REPLY_DATA = void>(): {
|
|
40
|
+
options: <ON_REPLY extends (replyData: REPLY_DATA) => void>(options: DomainRequestEventOptions<EVT_DATA, ON_REPLY>) => DomainRequestEvent<EVT_DATA, REPLY_DATA>;
|
|
41
41
|
};
|
|
42
|
-
export declare function createBroadcastEvent<
|
|
42
|
+
export declare function createBroadcastEvent<EVT_DATA extends object = never>(): DomainBroadcastEvent<EVT_DATA>;
|
|
43
43
|
export declare function largeNumberIncrease(num1: string): string;
|