mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00

Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
47 lines
1.2 KiB
TypeScript
47 lines
1.2 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 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;
|
|
}
|