Update eslint.
This commit is contained in:
@@ -8,7 +8,7 @@ export interface VersionManifestFG2 {
|
||||
mainClass: string
|
||||
inheritsFrom: string
|
||||
jar: string
|
||||
logging: {}
|
||||
logging: Record<string, unknown>
|
||||
libraries: Array<{
|
||||
name: string
|
||||
url?: string
|
||||
|
||||
@@ -6,7 +6,7 @@ export interface VersionManifestFG3 {
|
||||
type: string
|
||||
mainClass: string
|
||||
inheritsFrom: string
|
||||
logging: {}
|
||||
logging: Record<string, unknown>
|
||||
arguments: {
|
||||
game: string[]
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export class ForgeModStructure17 extends BaseForgeModStructure {
|
||||
if (raw) {
|
||||
// Assuming the main mod will be the first entry in this file.
|
||||
try {
|
||||
const resolved = JSON.parse(raw) as object
|
||||
const resolved = JSON.parse(raw) as (McModInfoList | McModInfo[])
|
||||
if (Object.prototype.hasOwnProperty.call(resolved, 'modListVersion')) {
|
||||
this.forgeModMetadata[name] = (resolved as McModInfoList).modList[0]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user