mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* feat(platform-declarations): generate typings from iOS 13.0 SDK * fix(platform-declarations): typings generation script Delete Material Components typings from `tns-platform-declarations`, they are part of `tns-core-modules` package. * refactor(platform-declarations): workaround a TypeScript error Error: ``` tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts(178,15): error TS2417: Class static side 'typeof OSLogEnumerator' incorrectly extends base class static side 'typeof NSEnumerator'. Types of property 'alloc' are incompatible. Type '() => OSLogEnumerator' is not assignable to type '<ObjectType>() => NSEnumerator<ObjectType>'. Type 'OSLogEnumerator' is not assignable to type 'NSEnumerator<ObjectType>'. Types of property 'allObjects' are incompatible. Type 'NSArray<NSObject>' is not assignable to type 'NSArray<ObjectType>'. Type 'NSObject' is not assignable to type 'ObjectType'. 'NSObject' is assignable to the constraint of type 'ObjectType', but 'ObjectType' could be instantiated with a different subtype of constraint '{}'. ``` References: https://github.com/Microsoft/TypeScript/issues/17575 https://stackoverflow.com/questions/52518125/workaround-for-accessing-class-type-arguments-in-static-method-in-typescript * docs(platform-declarations): note a manual step on generating typings * chore(platform-declarations): exclude ios-typings-prj from transpilation * refactor(platform-declarations): delete references to MDC types ``` ios/objc-x86_64/objc!QuartzCore.d.ts:676:36 - error TS2304: Cannot find name 'MDCAnimationTimingFunction'. 676 static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction; ios/objc-x86_64/objc!UIKit.d.ts:7717:54 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7717 static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7719:53 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7719 static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7771:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7771 mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7794:64 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7794 static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ios/objc-x86_64/objc!UIKit.d.ts:7796:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7796 static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ```
140 lines
7.9 KiB
TypeScript
140 lines
7.9 KiB
TypeScript
/// <reference path="runtime.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ARKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AVFoundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AVKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Accelerate.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Accounts.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AdSupport.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AddressBook.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AddressBookUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AppleTextureEncoder.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AssetsLibrary.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AudioToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AuthenticationServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!BackgroundTasks.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!BusinessChat.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CFNetwork.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CallKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CarPlay.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ClassKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CloudKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CommonCrypto.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Compression.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Contacts.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ContactsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreAudioKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreAudioTypes.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreBluetooth.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreData.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreFoundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreGraphics.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreHaptics.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreImage.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreLocation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMIDI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreML.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMedia.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMotion.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreNFC.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreSpotlight.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreTelephony.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreText.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreVideo.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CryptoTokenKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Darwin.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!DeviceCheck.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Dispatch.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!DispatchIntrospection.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!EventKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!EventKitUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ExternalAccessory.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!FileProvider.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!FileProviderUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Foundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GLKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GSS.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameController.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameplayKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HealthKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HealthKitUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HomeKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ICU.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IOSurface.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IdentityLookup.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IdentityLookupUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ImageCaptureCore.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ImageIO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Intents.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IntentsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!JavaScriptCore.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!LinkPresentation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MDFInternationalization.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MachO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MapKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaAccessibility.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaPlayer.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MessageUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Messages.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Metal.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MetalKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MetalPerformanceShaders.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MetricKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ModelIO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MultipeerConnectivity.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NativeScriptEmbedder.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NaturalLanguage.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Network.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NetworkExtension.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NewsstandKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NotificationCenter.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!OSLog.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ObjectiveC.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!OpenAL.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!OpenGLES.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PDFKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PassKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PencilKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Photos.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PhotosUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Pods_iostypingsprj.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PushKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!QuartzCore.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!QuickLook.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!QuickLookThumbnailing.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ReplayKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SafariServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Security.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Social.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SoundAnalysis.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SystemConfiguration.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!TNSWidgets.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Twitter.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UIKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UserNotifications.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UserNotificationsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!VideoSubscriberAccount.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!VideoToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Vision.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!VisionKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!WatchConnectivity.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!WebKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!_Builtin_intrinsics.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!asl.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!dnssd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!iAd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!libkern.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!libxml2.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!os.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!os_object.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!simd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!zlib.d.ts" />
|