Skip to content

Commit 08b7196

Browse files
committed
v1.2.3
1 parent c9e2420 commit 08b7196

26 files changed

+3765
-19182
lines changed
-345 KB
Binary file not shown.

@types/ajax-work.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export declare namespace AjaxWork {
2-
function Worker(): void;
3-
}
4-
export default AjaxWork;
1+
export declare namespace AjaxWork {
2+
function Worker(): void;
3+
}
4+
export default AjaxWork;

@types/interfaces.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface ISharedMethods {
1414
export interface IAbstractFetchOptions {
1515
id?: string | null;
1616
sync?: boolean;
17-
url?: string;
17+
url: string | null;
1818
returnType?: "text" | "json";
1919
}
2020
export interface IRequestInit {
@@ -42,7 +42,7 @@ export interface IFetchOptions<TDataType> extends IRequestInit, IAbstractFetchOp
4242
}
4343
export interface IResponseOptions<TDataType> extends IAbstractFetchOptions {
4444
hash?: string;
45-
urlRedirected?: string;
45+
urlRedirected?: string | null;
4646
redirected?: boolean;
4747
headers?: Headers | string[][];
4848
data?: TDataType;

@types/main.d.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { IFetchOptions } from "./interfaces";
2-
export declare class AjaxWorker {
3-
}
4-
export declare namespace AjaxWorker {
5-
function fetch<TDataType>(options: IFetchOptions<TDataType>): void;
6-
function init(): void;
7-
}
8-
export default AjaxWorker;
1+
import { IFetchOptions } from "./interfaces";
2+
export declare class AjaxWorker {
3+
}
4+
export declare namespace AjaxWorker {
5+
function fetch<TDataType>(options: IFetchOptions<TDataType>): void;
6+
function init(): void;
7+
}
8+
export default AjaxWorker;

0 commit comments

Comments
 (0)