Browse Source

remove baseUrl typing from index.d.ts

iou90 4 years ago
parent
commit
56362b2a0e
1 changed files with 16 additions and 15 deletions
  1. 16
    15
      index.d.ts

+ 16
- 15
index.d.ts View File

2
 // Project: https://github.com/iou90/react-native-autoheight-webview
2
 // Project: https://github.com/iou90/react-native-autoheight-webview
3
 // Definitions by: Naveen Ithappu <https://github.com/naveen-ithappu>
3
 // Definitions by: Naveen Ithappu <https://github.com/naveen-ithappu>
4
 // TypeScript Version: 2.8
4
 // TypeScript Version: 2.8
5
-import { Component } from "react";
6
-import { WebViewProps } from "react-native-webview";
7
-import {ViewStyle} from "react-native";
5
+import { Component } from 'react';
6
+
7
+import { WebViewProps } from 'react-native-webview';
8
+
9
+import { ViewStyle } from 'react-native';
8
 
10
 
9
 export interface StylesFile {
11
 export interface StylesFile {
10
-    href: string;
11
-    type: string;
12
-    rel: string;
12
+  href: string;
13
+  type: string;
14
+  rel: string;
13
 }
15
 }
14
 
16
 
15
 export interface SizeUpdate {
17
 export interface SizeUpdate {
16
-    width:number,
17
-    height:number
18
+  width: number;
19
+  height: number;
18
 }
20
 }
19
 
21
 
20
 export interface AutoHeightWebViewProps extends WebViewProps {
22
 export interface AutoHeightWebViewProps extends WebViewProps {
21
-    onSizeUpdated: (size: SizeUpdate)=>void;
22
-    baseUrl: string;
23
-    files: StylesFile[];
24
-    style: ViewStyle;
25
-    customScript: string;
26
-    customStyle: string;
27
-    zoomable: boolean;
23
+  onSizeUpdated: (size: SizeUpdate) => void;
24
+  files: StylesFile[];
25
+  style: ViewStyle;
26
+  customScript: string;
27
+  customStyle: string;
28
+  zoomable: boolean;
28
 }
29
 }
29
 
30
 
30
 export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}
31
 export default class AutoHeightWebView extends Component<Partial<AutoHeightWebViewProps>> {}