osrm-backend/tests/ts/union_vector/gadget.d.ts
Siarhei Fedartsou 0f6aab9da6 Squashed 'third_party/flatbuffers/' content from commit 595bf0007
git-subtree-dir: third_party/flatbuffers
git-subtree-split: 595bf0007ab1929570c7671f091313c8fc20644e
2024-06-22 13:33:34 +02:00

10 lines
507 B
TypeScript

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