Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.d.ts #38

Merged
merged 1 commit into from
Apr 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { ResponseError } from "./utils";

export type ResponseType = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'formData';

export interface ResponseError<D = any> extends Error {
name: string;
data: D;
response: Response;
}
/**
* 增加的参数
* @param {string} requestType post类型, 用来简化写content-Type, 默认json
Expand Down