Fix a few parameter type definitions

This commit is contained in:
Linus Groh
2020-03-07 00:14:59 +00:00
parent 04fa3392f0
commit 1482833e05
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { distanceBetweenCoordinates } from "@/util";
* array of all coordinates.
*
* @param {State} state
* @param {MultiLocationHistory} state.locationHistory
* @param {LocationHistory} state.locationHistory
* Location history of selected users and devices
* @returns {L.LatLng[]} All coordinates
*/
@@ -30,7 +30,7 @@ const locationHistoryLatLngs = state => {
* coordinates does not exceed `config.map.maxPointDistance`.
*
* @param {State} state
* @param {MultiLocationHistory} state.locationHistory
* @param {LocationHistory} state.locationHistory
* Location history of selected users and devices
* @returns {L.LatLng[][]} Groups of coherent coordinates
*/
+2 -2
View File
@@ -206,8 +206,8 @@ export default {
*
* @param {User} user Username
* @param {Device} device Device name
* @param {LocationHistory} deviceLocations Device name
* @returns {LocationHistory} Updated location history
* @param {OTLocation[]} deviceLocations Device name
* @returns {OTLocation[]} Updated locations
*/
deviceLocationsWithNameAndFace(user, device, deviceLocations) {
const lastLocation = this.lastLocations.find(