mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(platform-declarations-ios): Change 2^64-1 enum values to -1
`18446744073709551615` (`0xFFFFFFFFFFFFFFFF`) is an overflow to the JS numerical system and therefore incorrect. Integer values from `-(2^53-1)` to `(2^53-1)` only can be safely represented in JS (`Number.MIN_SAFE_INTEGER` to `Number.MAX_SAFE_INTEGER`) There's a fix in iOS Runtime's metadata generator which now automatically converts such values to signed. (https://github.com/NativeScript/ios-runtime/pull/1151) refs https://github.com/NativeScript/ios-runtime/issues/1150
This commit is contained in:
@ -743,7 +743,7 @@ declare const enum MPMediaType {
|
||||
|
||||
AnyVideo = 65280,
|
||||
|
||||
Any = 18446744073709551615
|
||||
Any = -1
|
||||
}
|
||||
|
||||
declare class MPMovieAccessLog extends NSObject implements NSCopying {
|
||||
|
@ -375,7 +375,7 @@ declare const enum PKPassType {
|
||||
|
||||
Payment = 1,
|
||||
|
||||
Any = 18446744073709551615
|
||||
Any = -1
|
||||
}
|
||||
|
||||
declare class PKPayment extends NSObject {
|
||||
|
@ -2939,7 +2939,7 @@ declare const enum SCNPhysicsCollisionCategory {
|
||||
|
||||
Static = 2,
|
||||
|
||||
All = 18446744073709551615
|
||||
All = -1
|
||||
}
|
||||
|
||||
declare class SCNPhysicsConeTwistJoint extends SCNPhysicsBehavior {
|
||||
|
@ -4354,7 +4354,7 @@ declare const enum UICollisionBehaviorMode {
|
||||
|
||||
Boundaries = 2,
|
||||
|
||||
Everything = 18446744073709551615
|
||||
Everything = -1
|
||||
}
|
||||
|
||||
declare class UIColor extends NSObject implements NSCopying, NSItemProviderReading, NSItemProviderWriting, NSSecureCoding {
|
||||
@ -4831,7 +4831,7 @@ declare const enum UIDataDetectorTypes {
|
||||
|
||||
None = 0,
|
||||
|
||||
All = 18446744073709551615
|
||||
All = -1
|
||||
}
|
||||
|
||||
interface UIDataSourceModelAssociation {
|
||||
@ -9348,7 +9348,7 @@ declare const enum UIPopoverArrowDirection {
|
||||
|
||||
Any = 15,
|
||||
|
||||
Unknown = 18446744073709551615
|
||||
Unknown = -1
|
||||
}
|
||||
|
||||
declare class UIPopoverBackgroundView extends UIView implements UIPopoverBackgroundViewMethods {
|
||||
@ -10286,7 +10286,7 @@ declare const enum UIRectCorner {
|
||||
|
||||
BottomRight = 8,
|
||||
|
||||
AllCorners = 18446744073709551615
|
||||
AllCorners = -1
|
||||
}
|
||||
|
||||
declare const enum UIRectEdge {
|
||||
|
@ -7,7 +7,7 @@ declare const enum WKAudiovisualMediaTypes {
|
||||
|
||||
Video = 2,
|
||||
|
||||
All = 18446744073709551615
|
||||
All = -1
|
||||
}
|
||||
|
||||
declare class WKBackForwardList extends NSObject {
|
||||
@ -88,7 +88,7 @@ declare const enum WKDataDetectorTypes {
|
||||
|
||||
LookupSuggestion = 64,
|
||||
|
||||
All = 18446744073709551615,
|
||||
All = -1,
|
||||
|
||||
SpotlightSuggestion = 64
|
||||
}
|
||||
|
Reference in New Issue
Block a user