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:
Martin Bektchiev
2019-06-05 17:41:58 +03:00
parent 1c22a73042
commit 6720139ec0
5 changed files with 9 additions and 9 deletions

View File

@ -743,7 +743,7 @@ declare const enum MPMediaType {
AnyVideo = 65280,
Any = 18446744073709551615
Any = -1
}
declare class MPMovieAccessLog extends NSObject implements NSCopying {

View File

@ -375,7 +375,7 @@ declare const enum PKPassType {
Payment = 1,
Any = 18446744073709551615
Any = -1
}
declare class PKPayment extends NSObject {

View File

@ -2939,7 +2939,7 @@ declare const enum SCNPhysicsCollisionCategory {
Static = 2,
All = 18446744073709551615
All = -1
}
declare class SCNPhysicsConeTwistJoint extends SCNPhysicsBehavior {

View File

@ -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 {

View File

@ -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
}