From e2adacc97777a02a75551a142c96931104b14851 Mon Sep 17 00:00:00 2001 From: Vladimir Timofeev Date: Tue, 26 Mar 2019 03:31:50 +0300 Subject: [PATCH] fix(typings): incorrect package.json + fix d.ts(#453) * fix(typings): fix syntax of main d.ts file * fix(typings): point typings field in package.json to actual d.ts file --- index.d.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 "