@pansy/react-mapbox-gl
Version:
🌍 基于 Mapbox GL 封装的 React 组件库
11 lines (10 loc) • 323 B
TypeScript
/// <reference types="react" />
import type { SourceSpecification } from 'mapbox-gl';
import type { CustomSource } from '../../types/lib';
export interface Source {
type: string;
}
export type SourceProps<SourceT = SourceSpecification> = (SourceT | CustomSource) & {
id?: string;
children?: React.ReactNode;
};