@midnight-ntwrk/wallet-sdk-runtime 1.1.0-beta.1 → 1.1.0-beta.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.
@@ -87,23 +87,9 @@ export declare const isVersionChange: {
87
87
  };
88
88
  };
89
89
  export declare const match: {
90
- <A, B, C, D, Cases extends {
91
- readonly State: (args: {
92
- readonly _tag: "State";
93
- readonly state: A;
94
- }) => any;
95
- readonly ProgressUpdate: (args: {
96
- readonly _tag: "ProgressUpdate";
97
- readonly sourceGap: bigint;
98
- readonly applyGap: bigint;
99
- }) => any;
100
- readonly VersionChange: (args: {
101
- readonly _tag: "VersionChange";
102
- readonly change: VersionChangeType;
103
- }) => any;
104
- }>(cases: Cases & { [K in Exclude<keyof Cases, "State" | "ProgressUpdate" | "VersionChange">]: never; }): (self: {
90
+ <const Self extends {
105
91
  readonly _tag: "State";
106
- readonly state: A;
92
+ readonly state: any;
107
93
  } | {
108
94
  readonly _tag: "ProgressUpdate";
109
95
  readonly sourceGap: bigint;
@@ -111,7 +97,9 @@ export declare const match: {
111
97
  } | {
112
98
  readonly _tag: "VersionChange";
113
99
  readonly change: VersionChangeType;
114
- }) => import("effect/Unify").Unify<ReturnType<Cases["State" | "ProgressUpdate" | "VersionChange"]>>;
100
+ }, const Cases extends { readonly [Tag in Self["_tag"]]: (args: Extract<Self, {
101
+ readonly _tag: Tag;
102
+ }>) => any; }>(self: Self, cases: Cases & { [K in Exclude<keyof Cases, Self["_tag"]>]: never; }): import("effect/Unify").Unify<ReturnType<Cases[Self["_tag"]]>>;
115
103
  <A, B, C, D, Cases extends {
116
104
  readonly State: (args: {
117
105
  readonly _tag: "State";
@@ -126,7 +114,7 @@ export declare const match: {
126
114
  readonly _tag: "VersionChange";
127
115
  readonly change: VersionChangeType;
128
116
  }) => any;
129
- }>(self: {
117
+ }>(cases: Cases & { [K in Exclude<keyof Cases, "State" | "ProgressUpdate" | "VersionChange">]: never; }): (self: {
130
118
  readonly _tag: "State";
131
119
  readonly state: A;
132
120
  } | {
@@ -136,7 +124,7 @@ export declare const match: {
136
124
  } | {
137
125
  readonly _tag: "VersionChange";
138
126
  readonly change: VersionChangeType;
139
- }, cases: Cases & { [K in Exclude<keyof Cases, "State" | "ProgressUpdate" | "VersionChange">]: never; }): import("effect/Unify").Unify<ReturnType<Cases["State" | "ProgressUpdate" | "VersionChange"]>>;
127
+ }) => import("effect/Unify").Unify<ReturnType<Cases["State" | "ProgressUpdate" | "VersionChange"]>>;
140
128
  }, State: <A>(args: {
141
129
  readonly state: A;
142
130
  }) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/wallet-sdk-runtime",
3
3
  "description": "Runtime for the wallet variants",
4
- "version": "1.1.0-beta.1",
4
+ "version": "1.1.0-beta.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@midnight-ntwrk/wallet-sdk-abstractions": "3.0.0-beta.1",
34
+ "@midnight-ntwrk/wallet-sdk-abstractions": "3.0.0-beta.2",
35
35
  "@midnight-ntwrk/wallet-sdk-utilities": "1.2.2-beta.0",
36
36
  "effect": "^3.19.19",
37
37
  "rxjs": "^7.8.2"