@@ -76,7 +76,12 @@ declare var Clipboard: {
76
76
* }
77
77
* ```
78
78
*/
79
- hasString(): $FlowFixMe, // `any` in TypeScript upstream :(
79
+ // In the TS upstream, this is `any`. But reading code in 1.8.5, the
80
+ // resolve value is always a boolean:
81
+ // [NSNumber numberWithBool: …]
82
+ // (NSNumber is a funny way of saying boolean; it's a "boxed value":
83
+ // https://clang.llvm.org/docs/ObjectiveCLiterals.html )
84
+ hasString(): Promise<boolean>,
80
85
81
86
/**
82
87
* Returns whether the clipboard has an image or is empty.
@@ -87,7 +92,12 @@ declare var Clipboard: {
87
92
* }
88
93
* ```
89
94
*/
90
- hasImage(): $FlowFixMe, // `any` in TypeScript upstream :(
95
+ // In the TS upstream, this is `any`. But reading code in 1.8.5, the
96
+ // resolve value is always a boolean:
97
+ // [NSNumber numberWithBool: …]
98
+ // (NSNumber is a funny way of saying boolean; it's a "boxed value":
99
+ // https://clang.llvm.org/docs/ObjectiveCLiterals.html )
100
+ hasImage(): Promise<boolean>,
91
101
92
102
/**
93
103
* (IOS Only)
@@ -100,7 +110,12 @@ declare var Clipboard: {
100
110
* }
101
111
* ```
102
112
*/
103
- hasURL(): $FlowFixMe, // `any` in TypeScript upstream :(
113
+ // In the TS upstream, this is `any`. But reading code in 1.8.5, the
114
+ // resolve value is always a boolean:
115
+ // [NSNumber numberWithBool: …]
116
+ // (NSNumber is a funny way of saying boolean; it's a "boxed value":
117
+ // https://clang.llvm.org/docs/ObjectiveCLiterals.html )
118
+ hasURL(): Promise<boolean>,
104
119
105
120
/**
106
121
* (IOS 14+ Only)
@@ -113,7 +128,12 @@ declare var Clipboard: {
113
128
* }
114
129
* ```
115
130
*/
116
- hasNumber(): $FlowFixMe, // `any` in TypeScript upstream :(
131
+ // In the TS upstream, this is `any`. But reading code in 1.8.5, the
132
+ // resolve value is always a boolean:
133
+ // [NSNumber numberWithBool: …]
134
+ // (NSNumber is a funny way of saying boolean; it's a "boxed value":
135
+ // https://clang.llvm.org/docs/ObjectiveCLiterals.html )
136
+ hasNumber(): Promise<boolean>,
117
137
118
138
/**
119
139
* (IOS 14+ Only)
@@ -126,7 +146,12 @@ declare var Clipboard: {
126
146
* }
127
147
* ```
128
148
*/
129
- hasWebURL(): $FlowFixMe, // `any` in TypeScript upstream :(
149
+ // In the TS upstream, this is `any`. But reading code in 1.8.5, the
150
+ // resolve value is always a boolean:
151
+ // [NSNumber numberWithBool: …]
152
+ // (NSNumber is a funny way of saying boolean; it's a "boxed value":
153
+ // https://clang.llvm.org/docs/ObjectiveCLiterals.html )
154
+ hasWebURL(): Promise<boolean>,
130
155
131
156
/**
132
157
* (iOS and Android Only)
0 commit comments