UNPKG

enkanetwork

Version:

API wrapper for enka.network written on TypeScript which provides localization, caching and convenience

16 lines (15 loc) 502 B
import type { IAssetAdapter } from "./types"; export interface IOriginAdapterOptions { baseUrl?: string; extension?: string; } /** * Default adapter. Resolves a filename to a remote URL on the origin, without any * caching. Reproduces the historical `getAssetPath` behavior. */ export declare class OriginAdapter implements IAssetAdapter { baseUrl: string; extension: string; constructor({ baseUrl, extension, }?: IOriginAdapterOptions); resolve(filename: string): string; }