diff --git a/index.d.ts b/index.d.ts index af50eb2..d772105 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,7 +2,7 @@ import { Component } from 'react'; // eslint-disable-next-line import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes'; -class WebView extends Component { +declare class WebView extends Component { /** * Go back one page in the webview's history. */ @@ -32,7 +32,7 @@ class WebView extends Component { * Executes the JavaScript string. */ injectJavaScript: (script: string) => void; -}; +} export {WebView}; export default WebView; diff --git a/package.json b/package.json index 9f39e58..d835389 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-native-webview", "description": "React Native WebView component for iOS, Android, and Windows 10 (coming soon)", "main": "index.js", - "typings": "typings/index.d.ts", + "typings": "index.d.ts", "author": "Jamon Holmgren ", "contributors": [ "Thibault Malbranche "