vue2-request-utils
Version:
Vue 3 composition API for data fetching. This is a version for Vue 2 by using @vue/composition-api.
16 lines (15 loc) • 950 B
TypeScript
import { RefObject, UnRef } from './types';
export declare const objectToString: () => string;
export declare const toTypeString: (val: unknown) => string;
export declare const isString: (val: unknown) => val is string;
export declare const isPlainObject: (val: unknown) => val is Record<string, any>;
export declare const isObject: (val: unknown) => val is Record<any, any>;
export declare const isPromise: (fn: unknown) => fn is Promise<unknown>;
export declare const isFunction: (fn: unknown) => fn is Function;
export declare const isNil: (val: unknown) => boolean;
export declare const isServer: boolean;
export declare const isDocumentVisibility: () => boolean;
export declare const isOnline: () => boolean;
export declare const unRefObject: <T extends RefObject>(val: T) => { [K in keyof T]: UnRef<T[K]>; };
export declare const resolvedPromise: Promise<null>;
export declare const requestProxy: (url: string, ...rest: any[]) => Promise<any>;