-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-ping@1.2.6 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-ping/index.d.ts b/node_modules/react-native-ping/index.d.ts
new file mode 100644
index 0000000..25bd7a4
--- /dev/null
+++ b/node_modules/react-native-ping/index.d.ts
@@ -0,0 +1,17 @@
+class Ping {
+ /**
+ *
+ * Get RTT (Round-trip delay time)
+ *
+ * @static
+ * @param {string} ipAddress - For example : 8.8.8.8
+ * @param {Object} option - Some optional operations
+ * @param {number} option.timeout - timeout
+ * @returns
+ * @memberof Ping
+ */
+ static async start(ipAddress:string, option:{timeout:number}|any):any
+ static async getTrafficStats():any
+}
+
+export default Ping;
\ No newline at end of fileThis issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested