Skip to content

Commit

Permalink
refactor: change type definitions to interfaces for QuizType, Modules…
Browse files Browse the repository at this point in the history
…, and Status

Signed-off-by: Wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Oct 7, 2024
1 parent 4f1888b commit ad3df35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type QuizType = {
interface QuizType {
question: string
answer: string
badAnswers: Array<string>
Expand All @@ -11,12 +11,12 @@ type QuizType = {
}


type Modules = {
interface Modules {
name: string
status: StatusEnum
}

type Status = {
interface Status {
bot: StatusEnum
modules: Modules[]
}

0 comments on commit ad3df35

Please sign in to comment.