refactor(model): ♻️ use import type
instead of import
when possible
This commit is contained in:
parent
92a6ae01a3
commit
cbd14996d4
|
@ -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'
|
import { Ressource } from '@models/ressource.ts'
|
||||||
|
|
||||||
export class Group extends Ressource {
|
export class Group extends Ressource {
|
||||||
|
|
|
@ -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 { 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 {
|
export class Machine extends Ressource {
|
||||||
static fromJSON(
|
static fromJSON(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Ref } from '@/src/models/utils/ref.ts'
|
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'
|
import { regex } from '@/utils.ts'
|
||||||
|
|
||||||
export class Ressource {
|
export class Ressource {
|
||||||
|
|
|
@ -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 { 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 {
|
export class Service extends Ressource {
|
||||||
static fromJSON(
|
static fromJSON(
|
||||||
|
|
|
@ -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 { 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 {
|
export class User extends Ressource {
|
||||||
static fromJSON(
|
static fromJSON(
|
||||||
|
|
Loading…
Reference in a new issue