ferrum-db-client
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -15,3 +15,3 @@ import { FerrumServerClient } from './client'; | ||
hasTag(tag?: string): Promise<boolean>; | ||
getTagEntry(tag?: string, encoding?: SupportedEncodingTypes, compression?: SupportedCompressionTypes): Promise<boolean>; | ||
getTagEntry<T>(tag?: string, encoding?: SupportedEncodingTypes, compression?: SupportedCompressionTypes): Promise<T>; | ||
deleteTag(tag?: string): Promise<void>; | ||
@@ -18,0 +18,0 @@ getTags(): Promise<string[]>; |
{ | ||
"name": "ferrum-db-client", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
@@ -44,3 +44,3 @@ import { Encoding } from 'csharp-binary-stream'; | ||
public async getTagEntry(tag: string = '', encoding: SupportedEncodingTypes = 'json', compression: SupportedCompressionTypes = 'gzip'): Promise<boolean> { | ||
public async getTagEntry<T>(tag: string = '', encoding: SupportedEncodingTypes = 'json', compression: SupportedCompressionTypes = 'gzip'): Promise<T> { | ||
const { bw, myId } = this.client.getSendWriter( | ||
@@ -47,0 +47,0 @@ ApiMessageType.COLLECTION_GET_TAG_ENTRY, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
294419