Add typings for react-native-restart (#29644)

This commit is contained in:
Christian Chown
2018-10-11 10:36:12 -07:00
committed by Andy
parent ae7d2e5ef4
commit d96c3407ae
4 changed files with 40 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for react-native-restart 0.0
// Project: https://github.com/avishayil/react-native-restart#readme
// Definitions by: Christian Chown <https://github.com/christianchown>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
declare let ReactNativeRestart: {
Restart(): void;
};
export default ReactNativeRestart;
@@ -0,0 +1,4 @@
import * as React from "react";
import ReactNativeRestart from "react-native-restart";
ReactNativeRestart.Restart();
+24
View File
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"jsx": "react-native",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"react-native-restart-tests.tsx"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }