Browse Source

fix(types): Remove readonly definition in WebViewTypes.ts (#1272)

Co-authored-by: Giovanni Montenegro <giovanni.montenegro@fincons.com>
Giovanni Montenegro 4 years ago
parent
commit
3c06d78239
No account linked to committer's email address
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/WebViewTypes.ts

+ 5
- 5
src/WebViewTypes.ts View File

272
   saveFormDataDisabled?: boolean;
272
   saveFormDataDisabled?: boolean;
273
   textZoom?: number;
273
   textZoom?: number;
274
   thirdPartyCookiesEnabled?: boolean;
274
   thirdPartyCookiesEnabled?: boolean;
275
-  urlPrefixesForDefaultIntent?: readonly string[];
275
+  readonly urlPrefixesForDefaultIntent?: string[];
276
 }
276
 }
277
 
277
 
278
 export enum ContentInsetAdjustmentBehavior {
278
 export enum ContentInsetAdjustmentBehavior {
291
   bounces?: boolean;
291
   bounces?: boolean;
292
   contentInset?: ContentInsetProp;
292
   contentInset?: ContentInsetProp;
293
   contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior;
293
   contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior;
294
-  dataDetectorTypes?: DataDetectorTypes | readonly DataDetectorTypes[];
294
+  readonly dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[];
295
   decelerationRate?: number;
295
   decelerationRate?: number;
296
   directionalLockEnabled?: boolean;
296
   directionalLockEnabled?: boolean;
297
   hideKeyboardAccessoryView?: boolean;
297
   hideKeyboardAccessoryView?: boolean;
409
    *
409
    *
410
    * @platform ios
410
    * @platform ios
411
    */
411
    */
412
-  dataDetectorTypes?: DataDetectorTypes | readonly DataDetectorTypes[];
412
+  readonly dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[];
413
 
413
 
414
   /**
414
   /**
415
    * Boolean that determines whether HTML5 videos play inline or use the
415
    * Boolean that determines whether HTML5 videos play inline or use the
728
    * Use this to list URLs that WebView cannot handle, e.g. a PDF url.
728
    * Use this to list URLs that WebView cannot handle, e.g. a PDF url.
729
    * @platform android
729
    * @platform android
730
    */
730
    */
731
-  urlPrefixesForDefaultIntent?: readonly string[];
731
+  readonly urlPrefixesForDefaultIntent?: string[];
732
 
732
 
733
   /**
733
   /**
734
    * Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only
734
    * Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only
907
    * this whitelist, we will open the URL in Safari.
907
    * this whitelist, we will open the URL in Safari.
908
    * The default whitelisted origins are "http://*" and "https://*".
908
    * The default whitelisted origins are "http://*" and "https://*".
909
    */
909
    */
910
-  originWhitelist?: readonly string[];
910
+  readonly originWhitelist?: string[];
911
 
911
 
912
   /**
912
   /**
913
    * Function that allows custom handling of any web view requests. Return
913
    * Function that allows custom handling of any web view requests. Return