Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

21 lines
595 B
TypeScript

import type { Import } from "@server/models";
import presentUser from "./user";
export default function presentImport(
// oxlint-disable-next-line @typescript-eslint/no-explicit-any
importModel: Import<any>
) {
return {
id: importModel.id,
name: importModel.name,
service: importModel.service,
state: importModel.state,
documentCount: importModel.documentCount,
error: importModel.error,
createdBy: presentUser(importModel.createdBy),
createdById: importModel.createdById,
createdAt: importModel.createdAt,
updatedAt: importModel.updatedAt,
};
}