Migrate existing ts types from the API into the API module
This makes it possible to start hydrating the types into valid data types like Dates which means I can get type safety guarantees when displaying information.
This commit is contained in:
parent
b2c24a0438
commit
f88ca57d97
39 changed files with 382 additions and 320 deletions
|
|
@ -25,7 +25,7 @@
|
|||
Standing Water Report
|
||||
</span>
|
||||
</h5>
|
||||
<small class="text-muted">Report ID: #{{ report.public_id }}</small>
|
||||
<small class="text-muted">Report ID: #{{ report.id }}</small>
|
||||
</div>
|
||||
<span class="badge bg-secondary">
|
||||
<TimeRelative :time="report.created" />
|
||||
|
|
@ -316,7 +316,7 @@ import MapMultipoint from "@/components/MapMultipoint.vue";
|
|||
import PublicreportCard from "@/components/PublicreportCard.vue";
|
||||
import TimeRelative from "@/components/TimeRelative.vue";
|
||||
import { formatAddress } from "@/format";
|
||||
import { PublicReport } from "@/types";
|
||||
import { PublicReport } from "@/type/api";
|
||||
|
||||
interface Emits {
|
||||
(e: "viewImage", index: number): void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue