Properties
fetch
fetch
: (modrinth
: Modrinth, id
: string) => Promise<ObjectSource>
Type declaration
-
- (modrinth: Modrinth, id: string): Promise<ObjectSource>
-
Parameters
Returns Promise<ObjectSource>
fetchMultiple
fetch
Multiple: (modrinth: Modrinth, id: string[]) => Promise<ObjectSource[]>
Type declaration
-
- (modrinth: Modrinth, id: string[]): Promise<ObjectSource[]>
-
Parameters
Returns Promise<ObjectSource[]>
fromSource
from
Source: (modrinth: Modrinth, source: ObjectSource) => ObjectResult
Type declaration
-
- (modrinth: Modrinth, source: ObjectSource): ObjectResult
-
Parameters
Returns ObjectResult
get
get
: (modrinth
: Modrinth, id
: string) => Promise<ObjectResult>
Type declaration
-
- (modrinth: Modrinth, id: string): Promise<ObjectResult>
-
Parameters
Returns Promise<ObjectResult>
getCacheKey
getCacheKey: (id: string) => string
Type declaration
-
-
Parameters
Returns string
getMultiple
get
Multiple: (modrinth: Modrinth, id: string[]) => Promise<ObjectResult[]>
Type declaration
-
- (modrinth: Modrinth, id: string[]): Promise<ObjectResult[]>
-
Parameters
Returns Promise<ObjectResult[]>
getObjectLocation
getObjectLocation: (id: string) => string
Type declaration
-
-
Parameters
Returns string
getResourceLocation
getResourceLocation: (id: string) => string
Type declaration
-
-
Parameters
Returns string
toSource
toSource: (object: ObjectResult) => Partial<ObjectSource>
Type declaration
-
- (object: ObjectResult): Partial<ObjectSource>
-
Parameters
Returns Partial<ObjectSource>