Skip to content

Commit 9afcc81

Browse files
committed
chore: export type instead of export
1 parent fabf3d6 commit 9afcc81

File tree

7 files changed

+27
-26
lines changed

7 files changed

+27
-26
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"project": "./tsconfig.json"
55
},
66
"rules": {
7-
"@typescript-eslint/consistent-type-imports": "error"
7+
"@typescript-eslint/consistent-type-imports": "error",
8+
"@typescript-eslint/consistent-type-exports": "error"
89
}
910
}

src/models/Calendar/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Agenda } from './Agenda'
2-
import { Lesson } from './Lesson'
3-
import { HomeworkAssignment } from './HomeworkAssignment'
1+
import type { Agenda } from './Agenda'
2+
import type { Lesson } from './Lesson'
3+
import type { HomeworkAssignment } from './HomeworkAssignment'
44

55
export class AgendaResponse extends Array<Agenda> {
66
public constructor (response: Agenda[]) {
@@ -49,4 +49,4 @@ lessons.map(lesson => AgendaResponse.lessonToVEVENT(lesson, dtstamp)).join('\n')
4949
}
5050
}
5151

52-
export { Agenda, Lesson, HomeworkAssignment }
52+
export type { Agenda, Lesson, HomeworkAssignment }

src/models/Common/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export interface BaseObject<Type = string> {
33
type: Type
44
}
55

6-
export { AppCurrentConfig } from './CurrentConfig'
7-
export { User } from './User'
6+
export type { AppCurrentConfig } from './CurrentConfig'
7+
export type { User } from './User'

src/models/Messaging/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export { Communication } from './Communication'
2-
export { Folder } from './Folder'
3-
export { Contact } from './Contact'
4-
export { Participation } from './Participation'
5-
export { Participant } from './Participant'
6-
export { Signature } from './Signature'
7-
export { UsersMailSettings } from './UsersMailSettings'
8-
export { TechnicalUser } from './TechnicalUser'
1+
export type { Communication } from './Communication'
2+
export type { Folder } from './Folder'
3+
export type { Contact } from './Contact'
4+
export type { Participation } from './Participation'
5+
export type { Participant } from './Participant'
6+
export type { Signature } from './Signature'
7+
export type { UsersMailSettings } from './UsersMailSettings'
8+
export type { TechnicalUser } from './TechnicalUser'

src/models/Results/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { Evaluation } from './Evaluation'
2-
export { EvaluationDetail } from './EvaluationDetail'
3-
export { EvaluationResult } from './EvaluationResult'
4-
export { EvaluationService } from './EvaluationService'
5-
export { EvaluationSettings } from './EvaluationSettings'
1+
export type { Evaluation } from './Evaluation'
2+
export type { EvaluationDetail } from './EvaluationDetail'
3+
export type { EvaluationResult } from './EvaluationResult'
4+
export type { EvaluationService } from './EvaluationService'
5+
export type { EvaluationSettings } from './EvaluationSettings'

src/models/School/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { Attachment } from './Attachment'
2-
export { School } from './School'
3-
export { SchoolInfo } from './SchoolInfo'
1+
export type { Attachment } from './Attachment'
2+
export type { School } from './School'
3+
export type { SchoolInfo } from './SchoolInfo'

src/models/SchoolLife/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AbsenceFile, AbsenceState } from './AbsenceFile'
2-
import { AbsenceReason } from './AbsenceReason'
1+
import type { AbsenceFile, AbsenceState } from './AbsenceFile'
2+
import type { AbsenceReason } from './AbsenceReason'
33

44
export class AbsenceFilesResponse extends Array<AbsenceFile> {
55
public constructor (absenceFiles: AbsenceFile[]) {
@@ -25,4 +25,4 @@ export class AbsenceFilesResponse extends Array<AbsenceFile> {
2525
}
2626
}
2727

28-
export { AbsenceFile, AbsenceState, AbsenceReason }
28+
export type { AbsenceFile, AbsenceState, AbsenceReason }

0 commit comments

Comments
 (0)