File tree 4 files changed +366
-136
lines changed
4 files changed +366
-136
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export interface Chunk {
23
23
rowContents : Value ;
24
24
commitRow : boolean ;
25
25
resetRow : boolean ;
26
- rowKey ?: string | Uint8Array ;
26
+ rowKey ?: string | Bytes ;
27
27
familyName ?: { value : string } ;
28
28
qualifier ?: Qualifier | { value : Value } ;
29
29
timestampMicros ?: number | Long ;
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class Instance {
156
156
bigtable : Bigtable ;
157
157
id : string ;
158
158
name : string ;
159
- metadata ?: { } ;
159
+ metadata ?: google . bigtable . admin . v2 . IInstance ;
160
160
getTablesStream ! : ( options ?: GetTablesOptions ) => ResourceStream < Table > ;
161
161
constructor ( bigtable : Bigtable , id : string ) {
162
162
this . bigtable = bigtable ;
Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ export interface ParsedColumn {
36
36
qualifier : string | null ;
37
37
}
38
38
export interface ConvertFromBytesOptions {
39
- userOptions ?: { decode ?: boolean ; encoding ?: string } ;
39
+ userOptions ?: ConvertFromBytesUserOptions ;
40
40
isPossibleNumber ?: boolean ;
41
41
}
42
+ export interface ConvertFromBytesUserOptions {
43
+ decode ?: boolean ;
44
+ encoding ?: string ;
45
+ }
42
46
export interface MutationConstructorObj {
43
47
key : string ;
44
48
method : string ;
@@ -103,9 +107,9 @@ export class Mutation {
103
107
* @private
104
108
*/
105
109
static convertFromBytes (
106
- bytes : Bytes ,
110
+ bytes : Buffer | string ,
107
111
options ?: ConvertFromBytesOptions
108
- ) : Buffer | Value {
112
+ ) : Buffer | Value | string {
109
113
const buf = bytes instanceof Buffer ? bytes : Buffer . from ( bytes , 'base64' ) ;
110
114
if ( options && options . isPossibleNumber && buf . length === 8 ) {
111
115
// tslint:disable-next-line no-any
You can’t perform that action at this time.
0 commit comments