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

61 lines
1.6 KiB
TypeScript

declare class PKPushCredentials extends NSObject {
static alloc(): PKPushCredentials; // inherited from NSObject
static new(): PKPushCredentials; // inherited from NSObject
readonly token: NSData;
readonly type: string;
}
declare class PKPushPayload extends NSObject {
static alloc(): PKPushPayload; // inherited from NSObject
static new(): PKPushPayload; // inherited from NSObject
readonly dictionaryPayload: NSDictionary<any, any>;
readonly type: string;
}
declare class PKPushRegistry extends NSObject {
static alloc(): PKPushRegistry; // inherited from NSObject
static new(): PKPushRegistry; // inherited from NSObject
delegate: PKPushRegistryDelegate;
desiredPushTypes: NSSet<string>;
constructor(o: { queue: NSObject; });
initWithQueue(queue: NSObject): this;
pushTokenForType(type: string): NSData;
}
interface PKPushRegistryDelegate extends NSObjectProtocol {
pushRegistryDidInvalidatePushTokenForType?(registry: PKPushRegistry, type: string): void;
pushRegistryDidReceiveIncomingPushWithPayloadForType?(registry: PKPushRegistry, payload: PKPushPayload, type: string): void;
pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler?(registry: PKPushRegistry, payload: PKPushPayload, type: string, completion: () => void): void;
pushRegistryDidUpdatePushCredentialsForType(registry: PKPushRegistry, pushCredentials: PKPushCredentials, type: string): void;
}
declare var PKPushRegistryDelegate: {
prototype: PKPushRegistryDelegate;
};
declare var PKPushTypeComplication: string;
declare var PKPushTypeFileProvider: string;
declare var PKPushTypeVoIP: string;