mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 13:37:06 +00:00
[TS] Fix relative paths for exports (#8517)
Fixes an issue where exports were using incorrect relative paths for >=3 namespace levels. This is fixed by making the starting range of the namespace components relative to the amount of components. Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b8db3a9a6a
commit
00eec2445b
18
tests/ts/longer-namespace/a/b/c/person.d.ts
vendored
Normal file
18
tests/ts/longer-namespace/a/b/c/person.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
export declare class Person {
|
||||
bb: flatbuffers.ByteBuffer | null;
|
||||
bb_pos: number;
|
||||
__init(i: number, bb: flatbuffers.ByteBuffer): Person;
|
||||
static getRootAsPerson(bb: flatbuffers.ByteBuffer, obj?: Person): Person;
|
||||
static getSizePrefixedRootAsPerson(bb: flatbuffers.ByteBuffer, obj?: Person): Person;
|
||||
name(): string | null;
|
||||
name(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
||||
age(): number;
|
||||
static startPerson(builder: flatbuffers.Builder): void;
|
||||
static addName(builder: flatbuffers.Builder, nameOffset: flatbuffers.Offset): void;
|
||||
static addAge(builder: flatbuffers.Builder, age: number): void;
|
||||
static endPerson(builder: flatbuffers.Builder): flatbuffers.Offset;
|
||||
static finishPersonBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
||||
static finishSizePrefixedPersonBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
||||
static createPerson(builder: flatbuffers.Builder, nameOffset: flatbuffers.Offset, age: number): flatbuffers.Offset;
|
||||
}
|
||||
Reference in New Issue
Block a user