fix the last of the type annotations (still have to fix no-explicit-any warnings)

This commit is contained in:
2023-09-04 08:03:43 -06:00
parent fd43da93a5
commit a5e0c847b1
9 changed files with 383 additions and 475 deletions

View File

@@ -185,6 +185,7 @@
</template>
<script lang="ts">
import { LeafletMouseEvent } from "leaflet";
import "leaflet/dist/leaflet.css";
import { Component, Vue } from "vue-facing-decorator";
import {
@@ -202,7 +203,6 @@ import { didInfo, ProjectData } from "@/libs/endorserServer";
import QuickNav from "@/components/QuickNav.vue";
import InfiniteScroll from "@/components/InfiniteScroll.vue";
import EntityIcon from "@/components/EntityIcon.vue";
import { RawAxiosRequestHeaders } from "axios";
const DEFAULT_LAT_LONG_DIFF = 0.01;
const WORLD_ZOOM = 2;
@@ -337,7 +337,7 @@ export default class DiscoverView extends Vue {
} else {
throw JSON.stringify(results);
}
} catch (e) {
} catch (e: any) {
console.log("Error with feed load:", e);
this.$notify(
{
@@ -415,7 +415,7 @@ export default class DiscoverView extends Vue {
} else {
throw JSON.stringify(results);
}
} catch (e) {
} catch (e: any) {
console.log("Error with feed load:", e);
this.$notify(
{
@@ -458,7 +458,7 @@ export default class DiscoverView extends Vue {
this.$router.push(route);
}
setMapPoint(event) {
setMapPoint(event: LeafletMouseEvent) {
if (this.isNewMarkerSet) {
this.localLatDiff = Math.abs(event.latlng.lat - this.localCenterLat);
this.localLongDiff = Math.abs(event.latlng.lng - this.localCenterLong);