Files
Teodor Dermendjiev f54f71bc60 feat(iOS): update platform declarations
- 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
2018-09-05 11:50:02 +03:00

69 lines
1.4 KiB
TypeScript

declare class NKAssetDownload extends NSObject {
static alloc(): NKAssetDownload; // inherited from NSObject
static new(): NKAssetDownload; // inherited from NSObject
readonly URLRequest: NSURLRequest;
readonly identifier: string;
readonly issue: NKIssue;
userInfo: NSDictionary<any, any>;
downloadWithDelegate(delegate: NSURLConnectionDownloadDelegate): NSURLConnection;
}
declare class NKIssue extends NSObject {
static alloc(): NKIssue; // inherited from NSObject
static new(): NKIssue; // inherited from NSObject
readonly contentURL: NSURL;
readonly date: Date;
readonly downloadingAssets: NSArray<NKAssetDownload>;
readonly name: string;
readonly status: NKIssueContentStatus;
addAssetWithRequest(request: NSURLRequest): NKAssetDownload;
}
declare const enum NKIssueContentStatus {
None = 0,
Downloading = 1,
Available = 2
}
declare var NKIssueDownloadCompletedNotification: string;
declare class NKLibrary extends NSObject {
static alloc(): NKLibrary; // inherited from NSObject
static new(): NKLibrary; // inherited from NSObject
static sharedLibrary(): NKLibrary;
currentlyReadingIssue: NKIssue;
readonly downloadingAssets: NSArray<NKAssetDownload>;
readonly issues: NSArray<NKIssue>;
addIssueWithNameDate(name: string, date: Date): NKIssue;
issueWithName(name: string): NKIssue;
removeIssue(issue: NKIssue): void;
}