Open gdlk888 opened 2 years ago
you can add file as follow:
declare module "@mapbox/mapbox-gl-language" {
import { IControl, Map } from "mapbox-gl";
export default class MapboxLanguage implements IControl {
constructor(options?: {
defaultLanguage: string;
supportedLanguages?: string[];
});
onAdd(map:Map): HTMLElement;
onRemove(map:Map): void;
getDefaultPosition?: (() => string) | undefined;
}
}
There is no TS version of the life file