mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 22:36:54 +00:00
Improve TS types to support isolatedModules and isolatedDeclarations
This commit is contained in:
21
tests/ts/relative_imports/transit/two/identity.d.ts
vendored
Normal file
21
tests/ts/relative_imports/transit/two/identity.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
export declare class Identity implements flatbuffers.IUnpackableObject<IdentityT> {
|
||||
bb: flatbuffers.ByteBuffer | null;
|
||||
bb_pos: number;
|
||||
__init(i: number, bb: flatbuffers.ByteBuffer): Identity;
|
||||
static getRootAsIdentity(bb: flatbuffers.ByteBuffer, obj?: Identity): Identity;
|
||||
static getSizePrefixedRootAsIdentity(bb: flatbuffers.ByteBuffer, obj?: Identity): Identity;
|
||||
id(): number;
|
||||
static getFullyQualifiedName(): "Transit.Two.Identity";
|
||||
static startIdentity(builder: flatbuffers.Builder): void;
|
||||
static addId(builder: flatbuffers.Builder, id: number): void;
|
||||
static endIdentity(builder: flatbuffers.Builder): flatbuffers.Offset;
|
||||
static createIdentity(builder: flatbuffers.Builder, id: number): flatbuffers.Offset;
|
||||
unpack(): IdentityT;
|
||||
unpackTo(_o: IdentityT): void;
|
||||
}
|
||||
export declare class IdentityT implements flatbuffers.IGeneratedObject {
|
||||
id: number;
|
||||
constructor(id?: number);
|
||||
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
||||
}
|
||||
Reference in New Issue
Block a user