Skip to content

Commit 4ad21e3

Browse files
committed
chore: typings
1 parent d2ae8de commit 4ad21e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/https/request.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface Headers {
3232
[k: string]: string;
3333
}
3434

35-
export type CachePolicy = 'noCache' | 'onlyCache' | 'ignoreCache';
35+
export type CachePolicy = 'noCache' | 'offlineCache' | 'onlyCache' | 'ignoreCache';
3636
export interface HttpsRequestOptions extends HttpRequestOptions {
3737
url: string;
3838
tag?: string; // optional request tag to allow to cancel it
@@ -68,6 +68,7 @@ export interface HttpsRequestOptions extends HttpRequestOptions {
6868
progressOnMainThread?: boolean;
6969

7070
cachePolicy?: CachePolicy;
71+
nativeCachePolicy?: any;
7172

7273
/**
7374
* default to true. Android and iOS only store cookies in memory! it will be cleared after an app restart

0 commit comments

Comments
 (0)