Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModrinthStaticModel<ObjectResult, ObjectSource>

Type parameters

  • ObjectResult

  • ObjectSource

Hierarchy

  • Function
    • ModrinthStaticModel

Index

Properties

fetch

fetch: (modrinth: Modrinth, id: string) => Promise<ObjectSource>

Type declaration

    • (modrinth: Modrinth, id: string): Promise<ObjectSource>
    • Parameters

      Returns Promise<ObjectSource>

fetchMultiple

fetchMultiple: (modrinth: Modrinth, id: string[]) => Promise<ObjectSource[]>

Type declaration

    • (modrinth: Modrinth, id: string[]): Promise<ObjectSource[]>
    • Parameters

      Returns Promise<ObjectSource[]>

fromSource

fromSource: (modrinth: Modrinth, source: ObjectSource) => ObjectResult

Type declaration

    • (modrinth: Modrinth, source: ObjectSource): ObjectResult
    • Parameters

      • modrinth: Modrinth
      • source: ObjectSource

      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

    • (id: string): string
    • Parameters

      • id: string

      Returns string

getMultiple

getMultiple: (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

    • (id: string): string
    • Parameters

      • id: string

      Returns string

getResourceLocation

getResourceLocation: (id: string) => string

Type declaration

    • (id: string): string
    • Parameters

      • id: string

      Returns string

toSource

toSource: (object: ObjectResult) => Partial<ObjectSource>

Type declaration

    • (object: ObjectResult): Partial<ObjectSource>
    • Parameters

      • object: ObjectResult

      Returns Partial<ObjectSource>

Generated using TypeDoc