Added more TAs to Beast4L, fixed unlighthouse issue, optimized dev experience by throwing actual useful errors
This commit is contained in:
parent
278c39cb3b
commit
34784a3bf1
21 changed files with 112 additions and 33 deletions
src/types
13
src/types/generic.ts
Normal file
13
src/types/generic.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import type { FileData } from "./ta"
|
||||
|
||||
export interface IconsLookup {
|
||||
[key: string]: ImageMetadata
|
||||
}
|
||||
|
||||
interface GlobGeneric<T> {
|
||||
default: T
|
||||
}
|
||||
|
||||
export type GlobAny = GlobGeneric<any>
|
||||
export type GlobFiledata = GlobGeneric<FileData>
|
||||
export type GlobImage = GlobGeneric<ImageMetadata>
|
|
@ -1,3 +0,0 @@
|
|||
export interface IconsLookup {
|
||||
[key: string]: ImageMetadata
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
interface tadata {
|
||||
interface TAData {
|
||||
title: string
|
||||
link: string
|
||||
servant: string
|
||||
|
@ -7,14 +7,14 @@ interface tadata {
|
|||
date: string
|
||||
}
|
||||
|
||||
interface info {
|
||||
interface Info {
|
||||
title: string
|
||||
questReleaseDate: string
|
||||
description: string
|
||||
shortdescription: string
|
||||
}
|
||||
|
||||
export interface filedata {
|
||||
info: info
|
||||
data: tadata[]
|
||||
export interface FileData {
|
||||
info: Info
|
||||
data: TAData[]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue