...

Text file src/github.com/google/flatbuffers/tests/ts/union_vector/gadget.d.ts

Documentation: github.com/google/flatbuffers/tests/ts/union_vector

     1import { FallingTub } from './falling-tub.js';
     2import { HandFan } from './hand-fan.js';
     3export declare enum Gadget {
     4    NONE = 0,
     5    FallingTub = 1,
     6    HandFan = 2
     7}
     8export declare function unionToGadget(type: Gadget, accessor: (obj: FallingTub | HandFan) => FallingTub | HandFan | null): FallingTub | HandFan | null;
     9export declare function unionListToGadget(type: Gadget, accessor: (index: number, obj: FallingTub | HandFan) => FallingTub | HandFan | null, index: number): FallingTub | HandFan | null;

View as plain text