UNPKG

@snail-js/api

Version:

Http Request with Decorators Api, build on axios

17 lines (16 loc) 528 B
import { CacheManagementOption } from "./cache.management.option"; import { Method } from "axios"; export type CacheForType = "All" | "all" | Method | Method[]; export declare class SnailServerStatusCodeRuleOptions { key?: string; rule: (status: number) => boolean; } export interface SnailOption { name?: string; baseURL?: string; cacheManage?: CacheManagementOption; cacheFor?: CacheForType; enableLog?: boolean; timeout?: number; serverStatusCodeRule?: SnailServerStatusCodeRuleOptions; }