UNPKG

@snail-js/api

Version:

Http Request with Decorators Api, build on axios

23 lines (22 loc) 668 B
import { Strategy, ApiInstanceOptions } from "../typings"; export declare class SnailApi { private Name; private serverInstance; private Version?; private Url?; private Timeout?; private EnableLog?; constructor(options: ApiInstanceOptions); private init; private initStrategy; registerStrategies: (...strategys: Array<new () => Strategy>) => void; private initName; private getApiConfig; private isNoCache; get version(): string | undefined; get url(): string | undefined; get name(): string; get noCache(): boolean; get enableLog(): boolean | undefined; get timeout(): number | undefined; }