Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no TS version of the life file #56

Open
gdlk888 opened this issue Sep 9, 2022 · 1 comment
Open

There is no TS version of the life file #56

gdlk888 opened this issue Sep 9, 2022 · 1 comment

Comments

@gdlk888
Copy link

gdlk888 commented Sep 9, 2022

There is no TS version of the life file

@solfKwolf
Copy link

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;
  }
}

@Phillip9587 Phillip9587 mentioned this issue Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants