use class for types
This commit is contained in:
parent
aada1271a0
commit
080d1e0ffc
|
@ -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 }
|
|
@ -141,20 +141,7 @@ const PriceArrow = (props) => {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
* results: {
|
||||
* perimetrs: string,
|
||||
* rooms: string,
|
||||
* address: string,
|
||||
* floor: string,
|
||||
* floorHouse: string,
|
||||
* timeToBus: string,
|
||||
* timeToTrain: string,
|
||||
* price: string,
|
||||
* description: string,
|
||||
* dateCreate: string
|
||||
* }
|
||||
* }} props
|
||||
* @param {{ results: import('../../API/Apartment').Apartment }} props
|
||||
*/
|
||||
const CardApartament = function (props) {
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue