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

85 lines
2.4 KiB
TypeScript

interface CNContactPickerDelegate extends NSObjectProtocol {
contactPickerDidCancel?(picker: CNContactPickerViewController): void;
contactPickerDidSelectContact?(picker: CNContactPickerViewController, contact: CNContact): void;
contactPickerDidSelectContactProperties?(picker: CNContactPickerViewController, contactProperties: NSArray<CNContactProperty>): void;
contactPickerDidSelectContactProperty?(picker: CNContactPickerViewController, contactProperty: CNContactProperty): void;
contactPickerDidSelectContacts?(picker: CNContactPickerViewController, contacts: NSArray<CNContact>): void;
}
declare var CNContactPickerDelegate: {
prototype: CNContactPickerDelegate;
};
declare class CNContactPickerViewController extends UIViewController {
static alloc(): CNContactPickerViewController; // inherited from NSObject
static new(): CNContactPickerViewController; // inherited from NSObject
delegate: CNContactPickerDelegate;
displayedPropertyKeys: NSArray<string>;
predicateForEnablingContact: NSPredicate;
predicateForSelectionOfContact: NSPredicate;
predicateForSelectionOfProperty: NSPredicate;
}
declare class CNContactViewController extends UIViewController {
static alloc(): CNContactViewController; // inherited from NSObject
static descriptorForRequiredKeys(): CNKeyDescriptor;
static new(): CNContactViewController; // inherited from NSObject
static viewControllerForContact(contact: CNContact): CNContactViewController;
static viewControllerForNewContact(contact: CNContact): CNContactViewController;
static viewControllerForUnknownContact(contact: CNContact): CNContactViewController;
allowsActions: boolean;
allowsEditing: boolean;
alternateName: string;
/* readonly */ contact: CNContact;
contactStore: CNContactStore;
delegate: CNContactViewControllerDelegate;
displayedPropertyKeys: NSArray<any>;
message: string;
parentContainer: CNContainer;
parentGroup: CNGroup;
shouldShowLinkedContacts: boolean;
highlightPropertyWithKeyIdentifier(key: string, identifier: string): void;
}
interface CNContactViewControllerDelegate extends NSObjectProtocol {
contactViewControllerDidCompleteWithContact?(viewController: CNContactViewController, contact: CNContact): void;
contactViewControllerShouldPerformDefaultActionForContactProperty?(viewController: CNContactViewController, property: CNContactProperty): boolean;
}
declare var CNContactViewControllerDelegate: {
prototype: CNContactViewControllerDelegate;
};