mirror of
https://github.com/expo/react-native-webview.git
synced 2026-11-15 09:18:06 -10:00
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:
1 parent
dcc9d3f271
commit
e2adacc977
2 files changed
+3
-3
No files matched your search
Vendored
+2
-2
@@ -2,7 +2,7 @@ import { Component } from 'react';
|
||||
// eslint-disable-next-line
|
||||
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.
|
||||
*/
|
||||
@@ -32,7 +32,7 @@ class WebView extends Component<IOSWebViewProps & AndroidWebViewProps> {
|
||||
* Executes the JavaScript string.
|
||||
*/
|
||||
injectJavaScript: (script: string) => void;
|
||||
};
|
||||
}
|
||||
|
||||
export {WebView};
|
||||
export default WebView;
|
||||
+1
-1
@@ -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 <[email protected]>",
|
||||
"contributors": [
|
||||
"Thibault Malbranche <[email protected]>"
|
||||
|
||||
Reference in new issue
Block a user