@react-native-community/cli-types 7.0.1 → 8.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/android.d.ts +19 -17
- package/build/android.d.ts.map +1 -1
- package/build/index.d.ts +17 -45
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/ios.d.ts +12 -63
- package/build/ios.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/android.ts +0 -30
- package/src/index.ts +0 -198
- package/src/ios.ts +0 -97
- package/src/node-stream-zip.d.ts +0 -66
- package/tsconfig.json +0 -7
- package/tsconfig.tsbuildinfo +0 -1691
package/src/node-stream-zip.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// https://github.com/antelle/node-stream-zip/issues/36#issuecomment-596249657
|
|
2
|
-
declare module 'node-stream-zip' {
|
|
3
|
-
import {Stream} from 'stream';
|
|
4
|
-
|
|
5
|
-
interface StreamZipOptions {
|
|
6
|
-
/**
|
|
7
|
-
* File to read
|
|
8
|
-
*/
|
|
9
|
-
file: string;
|
|
10
|
-
/**
|
|
11
|
-
* You will be able to work with entries inside zip archive, otherwise the only way to access them is entry event
|
|
12
|
-
*
|
|
13
|
-
* default: true
|
|
14
|
-
*/
|
|
15
|
-
storeEntries?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* By default, entry name is checked for malicious characters, like ../ or c:\123, pass this flag to disable validation errors
|
|
18
|
-
*
|
|
19
|
-
* default: false
|
|
20
|
-
*/
|
|
21
|
-
skipEntryNameValidation?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Undocumented adjustment of chunk size
|
|
24
|
-
*
|
|
25
|
-
* default: automatic
|
|
26
|
-
*/
|
|
27
|
-
chunkSize?: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
class ZipEntry {
|
|
31
|
-
name: string;
|
|
32
|
-
isDirectory: boolean;
|
|
33
|
-
isFile: boolean;
|
|
34
|
-
comment: string;
|
|
35
|
-
size: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
class StreamZip {
|
|
39
|
-
constructor(config: StreamZipOptions);
|
|
40
|
-
|
|
41
|
-
on(event: 'ready', handler: () => void): void;
|
|
42
|
-
|
|
43
|
-
entry(entry: string): ZipEntry;
|
|
44
|
-
entries(): ZipEntry[];
|
|
45
|
-
|
|
46
|
-
entriesCount: number;
|
|
47
|
-
|
|
48
|
-
stream(
|
|
49
|
-
entry: string,
|
|
50
|
-
callback: (err: any | null, stream?: Stream) => void,
|
|
51
|
-
): void;
|
|
52
|
-
entryDataSync(entry: string): Buffer;
|
|
53
|
-
openEntry(
|
|
54
|
-
entry: string,
|
|
55
|
-
callback: (err: any | null, entry?: ZipEntry) => void,
|
|
56
|
-
sync: boolean,
|
|
57
|
-
): void;
|
|
58
|
-
extract(
|
|
59
|
-
entry: string | null,
|
|
60
|
-
outPath: string,
|
|
61
|
-
callback: (err?: any) => void,
|
|
62
|
-
): void;
|
|
63
|
-
close(callback?: (err?: any) => void): void;
|
|
64
|
-
}
|
|
65
|
-
export = StreamZip;
|
|
66
|
-
}
|