Files
Panayot Cankov 1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
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
2016-08-29 09:58:17 +03:00

57 lines
1.4 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<any>;
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;
pushRegistryDidUpdatePushCredentialsForType(registry: PKPushRegistry, credentials: PKPushCredentials, type: string): void;
}
declare var PKPushRegistryDelegate: {
prototype: PKPushRegistryDelegate;
};
declare var PKPushTypeComplication: string;
declare var PKPushTypeVoIP: string;