mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 15:34:26 +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
57 lines
1.4 KiB
TypeScript
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;
|