@naturalcycles/js-lib 14.222.0 → 14.224.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/dist/types.d.ts +11 -0
- package/package.json +1 -1
- package/src/types.ts +12 -0
package/dist/types.d.ts
CHANGED
|
@@ -177,6 +177,8 @@ export type UnixTimestampNumber = number;
|
|
|
177
177
|
* @example 1628945450000
|
|
178
178
|
*/
|
|
179
179
|
export type UnixTimestampMillisNumber = number;
|
|
180
|
+
export type NumberOfHours = number;
|
|
181
|
+
export type NumberOfMinutes = number;
|
|
180
182
|
export type NumberOfSeconds = number;
|
|
181
183
|
export type NumberOfMilliseconds = number;
|
|
182
184
|
/**
|
|
@@ -262,3 +264,12 @@ export declare const _objectAssign: <T extends AnyObject>(target: T, part: Parti
|
|
|
262
264
|
export type ErrorDataTuple<T = unknown, ERR = Error> = [err: null, data: T] | [err: ERR, data: null];
|
|
263
265
|
export type SortDirection = 'asc' | 'desc';
|
|
264
266
|
export type Inclusiveness = '()' | '[]' | '[)' | '(]';
|
|
267
|
+
/**
|
|
268
|
+
* @experimental
|
|
269
|
+
*/
|
|
270
|
+
export interface CommonClient extends AsyncDisposable {
|
|
271
|
+
connected: boolean;
|
|
272
|
+
connect: () => Promise<void>;
|
|
273
|
+
disconnect: () => Promise<void>;
|
|
274
|
+
ping: () => Promise<void>;
|
|
275
|
+
}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -233,6 +233,8 @@ export type UnixTimestampNumber = number
|
|
|
233
233
|
*/
|
|
234
234
|
export type UnixTimestampMillisNumber = number
|
|
235
235
|
|
|
236
|
+
export type NumberOfHours = number
|
|
237
|
+
export type NumberOfMinutes = number
|
|
236
238
|
export type NumberOfSeconds = number
|
|
237
239
|
export type NumberOfMilliseconds = number
|
|
238
240
|
|
|
@@ -339,3 +341,13 @@ export type ErrorDataTuple<T = unknown, ERR = Error> = [err: null, data: T] | [e
|
|
|
339
341
|
export type SortDirection = 'asc' | 'desc'
|
|
340
342
|
|
|
341
343
|
export type Inclusiveness = '()' | '[]' | '[)' | '(]'
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @experimental
|
|
347
|
+
*/
|
|
348
|
+
export interface CommonClient extends AsyncDisposable {
|
|
349
|
+
connected: boolean
|
|
350
|
+
connect: () => Promise<void>
|
|
351
|
+
disconnect: () => Promise<void>
|
|
352
|
+
ping: () => Promise<void>
|
|
353
|
+
}
|