Add type model.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Artifact } from './artifact'
|
||||
import { Required } from './required'
|
||||
import { Type } from './type'
|
||||
|
||||
export interface Module {
|
||||
|
||||
@@ -27,7 +28,7 @@ export interface Module {
|
||||
/**
|
||||
* The type of the module.
|
||||
*/
|
||||
type: string
|
||||
type: Type
|
||||
|
||||
/**
|
||||
* Defines whether or not the module is required. If omitted, then the module will be required.
|
||||
|
||||
42
src/model/type.ts
Normal file
42
src/model/type.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export const Types: {[property: string]: Type} = {
|
||||
|
||||
Library: {
|
||||
id: 'Library',
|
||||
defaultExtension: 'jar'
|
||||
},
|
||||
ForgeHosted: {
|
||||
id: 'ForgeHosted',
|
||||
defaultExtension: 'jar'
|
||||
},
|
||||
Forge: {
|
||||
id: 'Forge',
|
||||
defaultExtension: 'jar'
|
||||
},
|
||||
LiteLoader: {
|
||||
id: 'LiteLoader',
|
||||
defaultExtension: 'jar'
|
||||
},
|
||||
ForgeMod: {
|
||||
id: 'ForgeMod',
|
||||
defaultExtension: 'jar'
|
||||
},
|
||||
LiteMod: {
|
||||
id: 'LiteMod',
|
||||
defaultExtension: 'litemod'
|
||||
},
|
||||
File: {
|
||||
id: 'File'
|
||||
},
|
||||
VersionManifest: {
|
||||
id: 'VersionManifest',
|
||||
defaultExtension: 'json'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export interface Type {
|
||||
|
||||
id: string
|
||||
defaultExtension?: string
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user