refactor(model): ♻️ use import type instead of import when possible

This commit is contained in:
Julien Oculi 2024-06-17 13:49:42 +02:00
parent 92a6ae01a3
commit cbd14996d4
5 changed files with 13 additions and 13 deletions

View file

@ -1,4 +1,4 @@
import { Posix, ToJson, UUID } from '@/types.ts'
import type { Posix, ToJson, UUID } from '@/types.ts'
import { Ressource } from '@models/ressource.ts'
export class Group extends Ressource {

View file

@ -1,7 +1,7 @@
import { ToJson } from '@/types.ts'
import { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
import { Ref } from '@/src/models/utils/ref.ts'
import type { ToJson } from '@/types.ts'
import type { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
export class Machine extends Ressource {
static fromJSON(

View file

@ -1,5 +1,5 @@
import { Ref } from '@/src/models/utils/ref.ts'
import { DateString, ToJson, UUID } from '@/types.ts'
import type { DateString, ToJson, UUID } from '@/types.ts'
import { regex } from '@/utils.ts'
export class Ressource {

View file

@ -1,7 +1,7 @@
import { ToJson } from '@/types.ts'
import { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
import { Ref } from '@/src/models/utils/ref.ts'
import type { ToJson } from '@/types.ts'
import type { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
export class Service extends Ressource {
static fromJSON(

View file

@ -1,9 +1,9 @@
import { Login, MailAddress, Posix, ToJson } from '@/types.ts'
import { regex, toLogin } from '@/utils.ts'
import { Credential } from '@models/credential.ts'
import { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
import { Ref } from '@/src/models/utils/ref.ts'
import type { Login, MailAddress, Posix, ToJson } from '@/types.ts'
import { regex, toLogin } from '@/utils.ts'
import type { Credential } from '@models/credential.ts'
import type { Group } from '@models/group.ts'
import { Ressource } from '@models/ressource.ts'
export class User extends Ressource {
static fromJSON(