Application Load
IProductFeedbackDate
The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.
IProductFeedbackDateReview creation date, time and relative-time values.
interfaces/orionplace/products/IProduct.tsexport interface IProductFeedbackDate {
// Formatted calendar date.
date: string;
// Formatted time of day.
time: string;
// Whole days since this moment; the string `"Unknown"` when the interval
// could not be calculated.
days_ago: number | string;
// Relative time as a pair: how much time passed and its unit, for example 46
// and `sec`. The unit is an unlocalized English token (`sec`, `min`, `h`,
// `d`, `m`, `y`), so translate it before showing it; an empty string arrives
// when the interval could not be calculated.
word: [number, string] | string;
// Total minutes since this moment, rounded to two decimal places (not the
// remainder after `days_ago`); the string `"Unknown"` when the interval could
// not be calculated.
minutes_ago?: number | string;
}