mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
- add `objc-x86_64` architecture typings
- remove `objc-i386` architecture typings
- add `vector` typings
- change
```
(method) NSArray<ObjectType>.arrayWithArray<{}>(array: NSArray<{}>): NSArray<{}>
```
to
```
(method) NSArray<ObjectType>.arrayWithArray<string>(array: string[] | NSArray<string>): NSArray<string>
```
* Export typings on for iOS 11 x86_64
* fix: Export typings with fixed NSArray parameters
* Export typescript declarations for iOS 11.4
* Update reference path with the new typings folder
* feat: Create a script for auto typings generation
* Export typings on for iOS 11 x86_64
* fix: Export typings with fixed NSArray parameters
* Export typescript declarations for iOS 11.4
* Update reference path with the new typings folder
* feat: Create a script for auto typings generation
* chore: update .gitignore and .npmignore
* fix: Update constructor methods accepting NSArray parameters
* chore: Update manual changes flag for typings generation
58 lines
1.8 KiB
TypeScript
58 lines
1.8 KiB
TypeScript
|
|
declare const enum compression_algorithm {
|
|
|
|
COMPRESSION_LZ4 = 256,
|
|
|
|
COMPRESSION_ZLIB = 517,
|
|
|
|
COMPRESSION_LZMA = 774,
|
|
|
|
COMPRESSION_LZ4_RAW = 257,
|
|
|
|
COMPRESSION_LZFSE = 2049
|
|
}
|
|
|
|
declare function compression_decode_buffer(dst_buffer: string, dst_size: number, src_buffer: string, src_size: number, scratch_buffer: interop.Pointer | interop.Reference<any>, algorithm: compression_algorithm): number;
|
|
|
|
declare function compression_decode_scratch_buffer_size(algorithm: compression_algorithm): number;
|
|
|
|
declare function compression_encode_buffer(dst_buffer: string, dst_size: number, src_buffer: string, src_size: number, scratch_buffer: interop.Pointer | interop.Reference<any>, algorithm: compression_algorithm): number;
|
|
|
|
declare function compression_encode_scratch_buffer_size(algorithm: compression_algorithm): number;
|
|
|
|
declare const enum compression_status {
|
|
|
|
COMPRESSION_STATUS_OK = 0,
|
|
|
|
COMPRESSION_STATUS_ERROR = -1,
|
|
|
|
COMPRESSION_STATUS_END = 1
|
|
}
|
|
|
|
interface compression_stream {
|
|
dst_ptr: string;
|
|
dst_size: number;
|
|
src_ptr: string;
|
|
src_size: number;
|
|
state: interop.Pointer | interop.Reference<any>;
|
|
}
|
|
declare var compression_stream: interop.StructType<compression_stream>;
|
|
|
|
declare function compression_stream_destroy(stream: interop.Pointer | interop.Reference<compression_stream>): compression_status;
|
|
|
|
declare const enum compression_stream_flags {
|
|
|
|
COMPRESSION_STREAM_FINALIZE = 1
|
|
}
|
|
|
|
declare function compression_stream_init(stream: interop.Pointer | interop.Reference<compression_stream>, operation: compression_stream_operation, algorithm: compression_algorithm): compression_status;
|
|
|
|
declare const enum compression_stream_operation {
|
|
|
|
COMPRESSION_STREAM_ENCODE = 0,
|
|
|
|
COMPRESSION_STREAM_DECODE = 1
|
|
}
|
|
|
|
declare function compression_stream_process(stream: interop.Pointer | interop.Reference<compression_stream>, flags: number): compression_status;
|