mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import type { FetchMockStatic } from 'fetch-mock';
|
|
|
|
declare global {
|
|
declare var iD: typeof import('.');
|
|
declare var d3: typeof import('d3');
|
|
declare var fetchMock: FetchMockStatic;
|
|
declare var before: typeof beforeEach;
|
|
declare var after: typeof afterEach;
|
|
declare var VITEST: true;
|
|
|
|
declare type Tags = { [key: string]: string };
|
|
|
|
declare namespace iD {
|
|
export type Context = ReturnType<typeof iD.coreContext>;
|
|
|
|
export type Graph = InstanceType<typeof iD.coreGraph>;
|
|
|
|
export type OsmNode = import('./osm/node').OsmNode;
|
|
export type OsmWay = import('./osm/way').OsmWay;
|
|
export type OsmRelation = import('./osm/relation').OsmRelation;
|
|
|
|
export type AbstractEntity = InstanceType<typeof iD.osmEntity>;
|
|
export type OsmEntity = OsmNode | OsmWay | OsmRelation;
|
|
|
|
export type Projection = import('./geo/raw_mercator').Projection;
|
|
}
|
|
|
|
declare namespace d3 {
|
|
export type Selection<T = any> = import('d3').Selection<
|
|
T,
|
|
unknown,
|
|
unknown,
|
|
unknown
|
|
>;
|
|
}
|
|
}
|
|
|
|
export {};
|