-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interfaces -> types, listtype as type
- Loading branch information
1 parent
3091809
commit 97e2881
Showing
15 changed files
with
59 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/interfaces/InterfaceUserData.ts → src/types/TypesUserData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Type that describes the two parts of login data: username and password | ||
*/ | ||
export interface Login { | ||
export type Login = { | ||
username: string; | ||
password: string; | ||
} | ||
}; |
12 changes: 6 additions & 6 deletions
12
src/interfaces/InterfaceWorkContent.ts → src/types/TypesWorkContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/** | ||
* WorkConten is an object containing of the {@link Notes} at the beginning and the end of the work and an array of {@link Chapter}s | ||
*/ | ||
export default interface WorkContent { | ||
export type WorkContent = { | ||
notes: Notes; | ||
chapters: Chapter[]; | ||
} | ||
}; | ||
|
||
export interface Notes { | ||
export type Notes = { | ||
preNote: string; | ||
endNote: string; | ||
} | ||
}; | ||
|
||
export interface Chapter { | ||
export type Chapter = { | ||
chapterTitle?: string; | ||
chapterSummary?: string; | ||
chapterNotes?: string; | ||
chapterContent?: string | null; | ||
} | ||
}; |
40 changes: 20 additions & 20 deletions
40
src/interfaces/InterfaceWorkInfo.ts → src/types/TypesWorkInfo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
export interface Fandom { | ||
export type Fandom = { | ||
fandomName: string; | ||
fandomLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface Relationship { | ||
export type Relationship = { | ||
relationshipName: string; | ||
relationshipLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface Character { | ||
export type Character = { | ||
characterName: string; | ||
characterLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface Rating { | ||
export type Rating = { | ||
ratingName: string; | ||
ratingLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface ArchiveWarning { | ||
export type ArchiveWarning = { | ||
warningName: string; | ||
warningLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface Category { | ||
export type Category = { | ||
categoryName: string; | ||
categoryLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface Tag { | ||
export type Tag = { | ||
tagName: string; | ||
tagLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface SeriesInfo { | ||
export type SeriesInfo = { | ||
seriesName: string; | ||
seriesLink: string | undefined; | ||
seriesPart: number; | ||
} | ||
}; | ||
|
||
export interface Collection { | ||
export type Collection = { | ||
collectionName: string; | ||
collectionLink: string | undefined; | ||
} | ||
}; | ||
|
||
export interface ChapterInformation { | ||
export type ChapterInformation = { | ||
chaptersWritten: number; | ||
chaptersMax: number; | ||
} | ||
}; |
6 changes: 4 additions & 2 deletions
6
src/interfaces/InterfaceWorkList.ts → src/types/TypesWorkList.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
/** | ||
* a span of Pages that should be parsed when fetching a list of pages. The exclude key is an array of numbers that define the pages that should be ignored | ||
*/ | ||
export interface PageSpan { | ||
export type PageSpan = { | ||
start: number; | ||
end: number; | ||
exclude?: number[]; | ||
} | ||
}; | ||
|
||
export type Listtype = "History" | "Bookmarks"; |
10 changes: 5 additions & 5 deletions
10
src/interfaces/InterfaceWorkUsersData.ts → src/types/TypesWorkUsersData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { Tag } from "./InterfaceWorkInfo"; | ||
import { Tag } from "./TypesWorkInfo"; | ||
|
||
export interface WorkHistory { | ||
export type WorkHistory = { | ||
lastVisit: Date; | ||
timesVisited: number; | ||
ratio: number; | ||
wordsRead: number; | ||
} | ||
}; | ||
|
||
export interface WorkBookmark { | ||
export type WorkBookmark = { | ||
dateBookmarked: Date; | ||
bookmarkerTags?: Tag[]; | ||
bookmarkNotes?: string; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters