use class for types

This commit is contained in:
b1ek 2023-05-08 23:32:10 +10:00
parent aada1271a0
commit 080d1e0ffc
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 28 additions and 14 deletions

View File

@ -0,0 +1,27 @@
/**
* Apartment class model
*/
class Apartment {
/** @type {string} */
perimetrs
/** @type {string} */
rooms
/** @type {string} */
address
/** @type {string} */
floor
/** @type {string} */
floorHouse
/** @type {string} */
timeToBus
/** @type {string} */
timeToTrain
/** @type {string} */
price
/** @type {string} */
description
/** @type {string} */
dateCreate
}
export { Apartment }

View File

@ -141,20 +141,7 @@ const PriceArrow = (props) => {
} }
/** /**
* @param {{ * @param {{ results: import('../../API/Apartment').Apartment }} props
* results: {
* perimetrs: string,
* rooms: string,
* address: string,
* floor: string,
* floorHouse: string,
* timeToBus: string,
* timeToTrain: string,
* price: string,
* description: string,
* dateCreate: string
* }
* }} props
*/ */
const CardApartament = function (props) { const CardApartament = function (props) {
return ( return (