jperelli/vue2-leaflet-googlemutant

I made some typescript types

HIMISOCOOL opened this issue · 0 comments

I don't have time to put them in DefinitlyTyped right now so I'll leave them there if anyone is looking for them.

If anyone wants to publish them before I get around to it feel free just credit somehow.

As a note im not sure if the booleans on add/remove layer methods are optional or not since im not using them right now.

type GoogleMutantOptions = {
    minZoom?: number;
    maxZoom?: number;
    tileSize?: number;
    subdomains?: string;
    errorTileUrl?: string;
    attribution?: string;
    opacity?: number;
    continuousWorld?: boolean;
    noWrap?: boolean;
    type?: string;
    maxNativeZoom?: number;
};
declare module 'vue2-leaflet-googlemutant' {
    import Vue from 'vue';
    export default class Vue2LeafletGoogleMutant extends Vue {
        options: GoogleMutantOptions;
        apikey: string;
        ready: boolean;
        addLayer(layer: L.Layer, alreadyAdded: boolean): void;
        removeLayer(layer: L.Layer, alreadyRemoved: boolean): void;
    }
}