@agoric/time 0.3.3-dev-aa68d8f.0 → 0.3.3-dev-651b051.0
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/package.json +8 -8
- package/src/types.d.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/time",
|
|
3
|
-
"version": "0.3.3-dev-
|
|
3
|
+
"version": "0.3.3-dev-651b051.0+651b051",
|
|
4
4
|
"description": "Timestamps, time math, timer service API definition",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@endo/nat": "^5.0.
|
|
36
|
-
"@endo/patterns": "^1.
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-651b051.0+651b051",
|
|
35
|
+
"@endo/nat": "^5.0.7",
|
|
36
|
+
"@endo/patterns": "^1.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@endo/far": "^1.1.
|
|
40
|
-
"@endo/init": "^1.1.
|
|
39
|
+
"@endo/far": "^1.1.2",
|
|
40
|
+
"@endo/init": "^1.1.2",
|
|
41
41
|
"ava": "^5.3.0"
|
|
42
42
|
},
|
|
43
43
|
"ava": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"typeCoverage": {
|
|
57
|
-
"atLeast":
|
|
57
|
+
"atLeast": 87.11
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "651b05136f236230c67c8b40224540c585beaa54"
|
|
60
60
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ERef } from '@endo/eventual-send';
|
|
1
|
+
import type { ERef, RemotableBrand } from '@endo/eventual-send';
|
|
2
2
|
|
|
3
|
-
import type { RankComparison } from '@endo/marshal';
|
|
3
|
+
import type { RankComparison, RemotableObject } from '@endo/marshal';
|
|
4
4
|
|
|
5
5
|
/// <reference types="@agoric/notifier/src/types.js"/>
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ import type { RankComparison } from '@endo/marshal';
|
|
|
28
28
|
* See https://github.com/Agoric/agoric-sdk/issues/5798
|
|
29
29
|
* and https://github.com/Agoric/agoric-sdk/pull/5821
|
|
30
30
|
*/
|
|
31
|
-
export type TimerBrand = {
|
|
31
|
+
export type TimerBrand = RemotableObject & {
|
|
32
32
|
isMyTimerService: (timer: TimerService) => ERef<boolean>;
|
|
33
33
|
isMyClock: (clock: Clock) => ERef<boolean>;
|
|
34
34
|
};
|
|
@@ -107,7 +107,7 @@ export type CancelToken = object;
|
|
|
107
107
|
* schedule a single wake() call, create a repeater that will allow scheduling
|
|
108
108
|
* of events at regular intervals, or remove scheduled calls.
|
|
109
109
|
*/
|
|
110
|
-
export interface
|
|
110
|
+
export interface TimerServiceI {
|
|
111
111
|
/**
|
|
112
112
|
* Retrieve the latest timestamp
|
|
113
113
|
*/
|
|
@@ -181,6 +181,10 @@ export interface TimerService {
|
|
|
181
181
|
*/
|
|
182
182
|
getTimerBrand: () => TimerBrand;
|
|
183
183
|
}
|
|
184
|
+
// XXX copied from Remotable helper return type
|
|
185
|
+
export type TimerService = TimerServiceI &
|
|
186
|
+
RemotableObject<'TimerService'> &
|
|
187
|
+
RemotableBrand<{}, TimerServiceI>;
|
|
184
188
|
|
|
185
189
|
/**
|
|
186
190
|
* Read-only access to a TimeService's current time. This allows reading the
|