@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
34 lines (33 loc) • 1.35 kB
TypeScript
import { HttpClient } from '@angular/common/http';
export declare class HelperUtils {
static jumpOuterUrl(url: any, target?: string): void;
static downloadFile(url: string, option?: {
method?: 'POST' | 'GET' | 'post' | 'get';
params?: {
[property: string]: string;
};
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
iframename?: string;
}, onError?: (response: any) => void): void;
static downloadFileByHttpClient(httpClient: HttpClient, url: string, option?: {
method?: 'POST' | 'GET' | 'post' | 'get';
params?: {
[property: string]: string;
};
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
header?: {
[header: string]: string | string[];
};
responseOption?: 'response' | 'body' | 'json';
filename?: string;
withCredentials?: boolean;
downloadWithoutDispositionHeader?: boolean;
}, onError?: (response: any) => void, onSuccess?: (response: any) => void): void;
private static utf8ArrayToStr;
}
export declare class SimulateATagDirective {
href: string;
target: '_blank' | '_self' | '_parent' | '_top' | string;
constructor();
onClick(): void;
}