kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
18 lines (17 loc) • 587 B
TypeScript
import type { CustomLayerInterface, ILayer } from '../types';
declare type OptionalId<T> = T extends {
id: string;
} ? Omit<T, 'id'> & {
id?: string;
} : T;
declare type OptionalSource<T> = T extends {
source: string;
} ? Omit<T, 'source'> & {
source?: string;
} : T;
export declare type LayerProps<LayerT> = OptionalSource<OptionalId<LayerT>> & {
/** If set, the layer will be inserted before the specified layer */
beforeId?: string;
};
declare function Layer<LayerT extends ILayer>(props: LayerProps<LayerT | CustomLayerInterface>): any;
export default Layer;