@naturalcycles/js-lib 14.222.0 → 14.223.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 +9 -0
- package/package.json +1 -1
- package/src/types.ts +10 -0
package/dist/types.d.ts
CHANGED
|
@@ -262,3 +262,12 @@ export declare const _objectAssign: <T extends AnyObject>(target: T, part: Parti
|
|
|
262
262
|
export type ErrorDataTuple<T = unknown, ERR = Error> = [err: null, data: T] | [err: ERR, data: null];
|
|
263
263
|
export type SortDirection = 'asc' | 'desc';
|
|
264
264
|
export type Inclusiveness = '()' | '[]' | '[)' | '(]';
|
|
265
|
+
/**
|
|
266
|
+
* @experimental
|
|
267
|
+
*/
|
|
268
|
+
export interface CommonClient extends AsyncDisposable {
|
|
269
|
+
connected: boolean;
|
|
270
|
+
connect: () => Promise<void>;
|
|
271
|
+
disconnect: () => Promise<void>;
|
|
272
|
+
ping: () => Promise<void>;
|
|
273
|
+
}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -339,3 +339,13 @@ export type ErrorDataTuple<T = unknown, ERR = Error> = [err: null, data: T] | [e
|
|
|
339
339
|
export type SortDirection = 'asc' | 'desc'
|
|
340
340
|
|
|
341
341
|
export type Inclusiveness = '()' | '[]' | '[)' | '(]'
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @experimental
|
|
345
|
+
*/
|
|
346
|
+
export interface CommonClient extends AsyncDisposable {
|
|
347
|
+
connected: boolean
|
|
348
|
+
connect: () => Promise<void>
|
|
349
|
+
disconnect: () => Promise<void>
|
|
350
|
+
ping: () => Promise<void>
|
|
351
|
+
}
|