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
This commit is contained in:
Vladimir Timofeev 2019-03-26 03:31:50 +03:00 committed by Thibault Malbranche
parent dcc9d3f271
commit e2adacc977
2 changed files with 3 additions and 3 deletions

4
index.d.ts vendored
View File

@ -2,7 +2,7 @@ import { Component } from 'react';
// eslint-disable-next-line // eslint-disable-next-line
import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes'; import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes';
class WebView extends Component<IOSWebViewProps & AndroidWebViewProps> { declare class WebView extends Component<IOSWebViewProps & AndroidWebViewProps> {
/** /**
* Go back one page in the webview's history. * Go back one page in the webview's history.
*/ */
@ -32,7 +32,7 @@ class WebView extends Component<IOSWebViewProps & AndroidWebViewProps> {
* Executes the JavaScript string. * Executes the JavaScript string.
*/ */
injectJavaScript: (script: string) => void; injectJavaScript: (script: string) => void;
}; }
export {WebView}; export {WebView};
export default WebView; export default WebView;

View File

@ -2,7 +2,7 @@
"name": "react-native-webview", "name": "react-native-webview",
"description": "React Native WebView component for iOS, Android, and Windows 10 (coming soon)", "description": "React Native WebView component for iOS, Android, and Windows 10 (coming soon)",
"main": "index.js", "main": "index.js",
"typings": "typings/index.d.ts", "typings": "index.d.ts",
"author": "Jamon Holmgren <jamon@infinite.red>", "author": "Jamon Holmgren <jamon@infinite.red>",
"contributors": [ "contributors": [
"Thibault Malbranche <malbranche.thibault@gmail.com>" "Thibault Malbranche <malbranche.thibault@gmail.com>"