-
Notifications
You must be signed in to change notification settings - Fork 44
/
module.d.ts
30 lines (27 loc) · 1013 Bytes
/
module.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Network/XHRInterceptor.js
declare module 'react-native/Libraries/Network/XHRInterceptor' {
export function isInterceptorEnabled(): boolean;
export function setOpenCallback(...props: any): void;
export function setRequestHeaderCallback(...props: any): void;
export function setSendCallback(...props: any): void;
export function setHeaderReceivedCallback(...props: any): void;
export function setResponseCallback(...props: any): void;
export function enableInterception(): void;
export function disableInterception(): void;
}
declare module 'react-native/Libraries/Blob/FileReader' {
type Events =
| 'abort'
| 'error'
| 'load'
| 'loadstart'
| 'loadend'
| 'progress';
export default class {
constructor();
result: string;
error: any;
readAsText(blob: any, encoding: string = 'UTF-8'): boolean;
addEventListener(name: Events, callback: () => void): boolean;
}
}