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

57 lines
1.5 KiB
TypeScript

declare class TWRequest extends NSObject {
static alloc(): TWRequest; // inherited from NSObject
static new(): TWRequest; // inherited from NSObject
readonly URL: NSURL;
account: ACAccount;
readonly parameters: NSDictionary<any, any>;
readonly requestMethod: SLRequestMethod;
constructor(o: { URL: NSURL; parameters: NSDictionary<any, any>; requestMethod: SLRequestMethod; });
addMultiPartDataWithNameType(data: NSData, name: string, type: string): void;
initWithURLParametersRequestMethod(url: NSURL, parameters: NSDictionary<any, any>, requestMethod: SLRequestMethod): this;
performRequestWithHandler(handler: (p1: NSData, p2: NSHTTPURLResponse, p3: NSError) => void): void;
signedURLRequest(): NSURLRequest;
}
declare const TWRequestMethodDELETE: number;
declare const TWRequestMethodGET: number;
declare const TWRequestMethodPOST: number;
declare class TWTweetComposeViewController extends UIViewController {
static alloc(): TWTweetComposeViewController; // inherited from NSObject
static canSendTweet(): boolean;
static new(): TWTweetComposeViewController; // inherited from NSObject
completionHandler: (p1: SLComposeViewControllerResult) => void;
addImage(image: UIImage): boolean;
addURL(url: NSURL): boolean;
removeAllImages(): boolean;
removeAllURLs(): boolean;
setInitialText(text: string): boolean;
}
declare const TWTweetComposeViewControllerResultCancelled: number;
declare const TWTweetComposeViewControllerResultDone: number;