react-bkoi-gl
Version:
React components for Barikoi GL JS
19 lines (18 loc) • 593 B
TypeScript
import type { CustomLayerInterface } from "../types/lib";
import type { LayerSpecification } from "../types/style-spec";
type OptionalId<T> = T extends {
id: string;
} ? Omit<T, "id"> & {
id?: string;
} : T;
type OptionalSource<T> = T extends {
source: string;
} ? Omit<T, "source"> & {
source?: string;
} : T;
export type LayerProps = (OptionalSource<OptionalId<LayerSpecification>> | CustomLayerInterface) & {
/** If set, the layer will be inserted before the specified layer */
beforeId?: string;
};
export declare function Layer(props: LayerProps): any;
export {};