cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [08/11] cordova-plugin-splashscreen git commit: CB-12369: Add plugin typings from DefinitelyTyped
Date Fri, 03 Mar 2017 00:48:09 GMT
CB-12369: Add plugin typings from DefinitelyTyped

 This closes #123


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/2e1a6d5d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/2e1a6d5d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/2e1a6d5d

Branch: refs/heads/4.0.x
Commit: 2e1a6d5d22577fce26ab1d7f695f65eb2e5cacad
Parents: 5172dbb
Author: Nikita Matrosov <v-nimatr@microsoft.com>
Authored: Thu Jan 19 16:11:15 2017 +0300
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Mar 2 16:47:18 2017 -0800

----------------------------------------------------------------------
 package.json     |  1 +
 types/index.d.ts | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/2e1a6d5d/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 9df051f..943b53b 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,7 @@
   "name": "cordova-plugin-splashscreen",
   "version": "4.0.2-dev",
   "description": "Cordova Splashscreen Plugin",
+  "types": "./types/index.d.ts",
   "cordova": {
     "id": "cordova-plugin-splashscreen",
     "platforms": [

http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/2e1a6d5d/types/index.d.ts
----------------------------------------------------------------------
diff --git a/types/index.d.ts b/types/index.d.ts
new file mode 100644
index 0000000..968b340
--- /dev/null
+++ b/types/index.d.ts
@@ -0,0 +1,17 @@
+// Type definitions for Apache Cordova Splashscreen plugin
+// Project: https://github.com/apache/cordova-plugin-splashscreen
+// Definitions by: Microsoft Open Technologies Inc <http://msopentech.com>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// 
+// Copyright (c) Microsoft Open Technologies Inc
+// Licensed under the MIT license.
+
+interface Navigator {
+    /** This plugin displays and hides a splash screen during application launch. */
+    splashscreen: {
+        /** Dismiss the splash screen. */
+        hide(): void;
+        /** Displays the splash screen. */
+        show(): void;
+    }
+}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message