mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 10:11:46 +00:00
[TS] Make strict compliant and improve typings (#7549)
* [TS] Make strict compliant and improve typings * clang-format * Code gen harmonize Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class KeyValue {
|
||||
export class KeyValue implements flatbuffers.IUnpackableObject<KeyValueT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):KeyValue {
|
||||
@@ -79,7 +79,7 @@ unpackTo(_o: KeyValueT): void {
|
||||
}
|
||||
}
|
||||
|
||||
export class KeyValueT {
|
||||
export class KeyValueT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public key: string|Uint8Array|null = null,
|
||||
public value: string|Uint8Array|null = null
|
||||
|
||||
Reference in New Issue
Block a user